Allow to run tripleo-container-manage in check mode
Change-Id: I3350a43805b4a148f64de393716c26b0158fcff4
This commit is contained in:
parent
be0bc2b1a4
commit
6513a4bed8
|
@ -50,7 +50,6 @@
|
|||
|
||||
- name: Generate containers configs data
|
||||
no_log: "{{ false if tripleo_container_manage_debug else true }}"
|
||||
when: not ansible_check_mode|bool
|
||||
block:
|
||||
- name: "Find all matching configs configs for in {{ tripleo_container_manage_config }}"
|
||||
find:
|
||||
|
|
|
@ -18,6 +18,9 @@
|
|||
async: 300
|
||||
poll: 0
|
||||
register: create_async_results
|
||||
# async and check mode don't work together
|
||||
when:
|
||||
- not ansible_check_mode|bool
|
||||
loop: "{{ batched_container_data | haskey(attribute='action', reverse=True) }}"
|
||||
loop_control:
|
||||
loop_var: container_data
|
||||
|
@ -72,7 +75,9 @@
|
|||
register: create_async_poll_results
|
||||
until: create_async_poll_results.finished
|
||||
retries: 30
|
||||
when: not ansible_check_mode|bool
|
||||
# async and check mode don't work together
|
||||
when:
|
||||
- not ansible_check_mode|bool
|
||||
|
||||
# This fact will be used in systemd playbook to figure out if whether or not
|
||||
# a container managed by systemd needs to be restarted
|
||||
|
|
Loading…
Reference in New Issue