Changes

Jump to navigation Jump to search
18 bytes added ,  20:56, 3 August 2020
m
You can use the '''command module''' (secure but simple) or the '''[https://docs.ansible.com/ansible/shell_module.html shell module]'''. The latter may be useful if you need to run bash explicitly (defaults to /bin/sh); or anytime you need $HOME and redirection.
To sanitize any variables passed to the shell module, you should use <nowiki>"{{ var | quote }}" instead of just "{{ var }}"</nowiki> to make sure they don�t don't include evil things like semicolons.
[[Category:Fix characters]]
== Example Commands ==

Navigation menu