Added task to print STDOUT lines from script (Issue #33) (#46)

Co-authored-by: Benjamin Blasco <bblasco@redhat.com>
This commit is contained in:
benblasco
2022-12-01 07:55:06 +11:00
committed by GitHub
parent 1ac6581882
commit 85a220772a

View File

@@ -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
run_once: yes