Add some more debugging to the debug role

This can be used as inspiration when needing to debug something.

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2018-08-17 10:27:00 +02:00
parent eae028b31d
commit 8e730bd249

View file

@ -4,6 +4,15 @@
dest: /usr/local/bin/debug.py
mode: 0755
- name: print out the message
command: echo {{ msg | to_json | quote }}
register: output
- name: Show the output of the command
debug:
msg: "Output of the command: {{ output }}"
- name: Run the script
command: /usr/local/bin/debug.py {{ msg | to_json | quote }}
register: output