Add note to use script module rather than inline here documents (#32863)

* Add example on how to use a here document with shell module

* Remove here doc example and add note to use script module instead

(cherry picked from commit 5e7ee9df0a)
pull/36545/head
Sam Doran 7 years ago committed by Sam Doran
parent 7f9fdbbb30
commit cb73fba369

@ -75,6 +75,8 @@ notes:
- 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.
- For Windows targets, use the M(win_shell) module instead.
- Rather than using here documents to create multi-line scripts inside playbooks,
use the M(script) module instead.
requirements: [ ]
author:
- Ansible Core Team

Loading…
Cancel
Save