From 8e730bd24999f5c825c7cbb420d58dfdc377a7cd Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Fri, 17 Aug 2018 10:27:00 +0200 Subject: [PATCH] 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 --- playbooks/roles/debug/tasks/main.yml | 9 +++++++++ 1 file changed, 9 insertions(+) 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