diff --git a/playbooks/roles/debug/tasks/main.yml b/playbooks/roles/debug/tasks/main.yml index 6b2b0ef..641b577 100644 --- a/playbooks/roles/debug/tasks/main.yml +++ b/playbooks/roles/debug/tasks/main.yml @@ -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