summaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
authorMichael DeHaan <michael.dehaan@gmail.com>2014-07-18 18:23:48 -0400
committerMichael DeHaan <michael.dehaan@gmail.com>2014-07-18 18:23:48 -0400
commit9b587dafed785503a216ac46b8b21f57c778476d (patch)
tree2fef8a3903dcba9453c9d26f63c3d7a9258a2c07 /commands
parent3da1e5ce62251cba76fd6c83ba56b9373f779382 (diff)
downloadansible-modules-core-9b587dafed785503a216ac46b8b21f57c778476d.tar.gz
Add note about useful quote filter.
Diffstat (limited to 'commands')
-rw-r--r--commands/shell3
1 files changed, 3 insertions, 0 deletions
diff --git a/commands/shell b/commands/shell
index 130abc67..03e8f27c 100644
--- a/commands/shell
+++ b/commands/shell
@@ -47,6 +47,9 @@ notes:
playbooks will follow the trend of using M(command) unless M(shell) is
explicitly required. When running ad-hoc commands, use your best
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: [ ]
author: Michael DeHaan
'''