Ansible: Difference between revisions

No edit summary
Line 49: Line 49:
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 include evil things like semicolons.
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 include evil things like semicolons.


[[Category:Fix characters]]
 


== Example Commands ==
== Example Commands ==
Line 204: Line 204:
{{References}}
{{References}}


[[Category:Virtualization]]
[[Category:Configuration Management]]
[[Category:Configuration Management]]
[[Category:DevOps]]
[[Category:DevOps]]