From 85a220772a1e32d48695f9e65ccd35b6e35ca756 Mon Sep 17 00:00:00 2001 From: benblasco <42140583+benblasco@users.noreply.github.com> Date: Thu, 1 Dec 2022 07:55:06 +1100 Subject: [PATCH] Added task to print STDOUT lines from script (Issue #33) (#46) Co-authored-by: Benjamin Blasco --- linux/run_script.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/linux/run_script.yml b/linux/run_script.yml index a1c3364..8a9ae65 100644 --- a/linux/run_script.yml +++ b/linux/run_script.yml @@ -9,7 +9,12 @@ tasks: - name: Run Shell Script shell: "{{ shell_script }}" + register: shell_output + + - name: Print script output + debug: + var: shell_output.stdout_lines - debug: msg: You should really consider converting this script to a playbook! - run_once: yes \ No newline at end of file + run_once: yes