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:
parent
eae028b31d
commit
8e730bd249
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue