Add note about useful quote filter.
This commit is contained in:
parent
3da1e5ce62
commit
9b587dafed
1 changed files with 3 additions and 0 deletions
|
@ -47,6 +47,9 @@ notes:
|
||||||
playbooks will follow the trend of using M(command) unless M(shell) is
|
playbooks will follow the trend of using M(command) unless M(shell) is
|
||||||
explicitly required. When running ad-hoc commands, use your best
|
explicitly required. When running ad-hoc commands, use your best
|
||||||
judgement.
|
judgement.
|
||||||
|
- To sanitize any variables passed to the shell module, you should use
|
||||||
|
"{{ var | quote }}" instead of just "{{ var }}" to make sure they don't include evil things like semicolons.
|
||||||
|
|
||||||
requirements: [ ]
|
requirements: [ ]
|
||||||
author: Michael DeHaan
|
author: Michael DeHaan
|
||||||
'''
|
'''
|
||||||
|
|
Loading…
Reference in a new issue