Skip to content

Commit

Permalink
Detect changes on all nodes, for triggering "pause" on review
Browse files Browse the repository at this point in the history
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/pause_module.html
"Conditionals will work as if run_once is being used, variables used
will be from the first available host"
  • Loading branch information
Zempashi committed Dec 8, 2023
1 parent d96eaa0 commit 7ffe4c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion roles/process_reasons/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
- name: 'Pause to review diff and upgrade reasons'
pause:
when:
- _upgrade_reasons|length > 0 or _config_upgrade_reasons|length > 0
- ansible_play_hosts_all|map('extract', hostvars, '_upgrade_reasons')|map('default', [])|map('length')|select|list|length > 0
or ansible_play_hosts_all|map('extract', hostvars, '_config_upgrade_reasons')|map('default', [])|map('length')|select|list|length > 0
- groups.cp_running|default([])|length > 0
- not action_reasons_review_skip|bool

Expand Down

0 comments on commit 7ffe4c5

Please sign in to comment.