Skip to content

Commit

Permalink
Provide info about logging to the user as ansible output will hang
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-stroud committed Aug 2, 2023
1 parent 99c501d commit 4ffa302
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@
ansible.builtin.debug:
msg: "{{ commands.split('\n') | ansible.builtin.to_nice_yaml }}"

- name: Streaming log info
ansible.builtin.debug:
msg: |
Logs from commands will not be printed here until success (or failure)
Streaming logs can be found at {{ log_file }}

- name: Execute commands
ansible.builtin.shell: |
set -eo pipefail
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@
ansible.builtin.debug:
msg: "{{ commands.split('\n') | ansible.builtin.to_nice_yaml }}"

- name: Streaming log info
ansible.builtin.debug:
msg: |
Logs from commands will not be printed here until success (or failure)
Streaming logs can be found at {{ log_file }}

- name: Execute commands
ansible.builtin.shell: |
set -eo pipefail
Expand Down

0 comments on commit 4ffa302

Please sign in to comment.