Merge "[Ussuri/Train] Check mode doesn't work for async tasks" into stable/ussuri
This commit is contained in:
commit
efb23bfaf7
|
@ -97,6 +97,7 @@
|
||||||
when: enable_paunch|default(true)
|
when: enable_paunch|default(true)
|
||||||
block:
|
block:
|
||||||
- name: Start containers for step {{ step }} using paunch
|
- name: Start containers for step {{ step }} using paunch
|
||||||
|
check_mode: false
|
||||||
become: true
|
become: true
|
||||||
async: 3600
|
async: 3600
|
||||||
poll: 0
|
poll: 0
|
||||||
|
@ -116,6 +117,7 @@
|
||||||
- container_startup_configs
|
- container_startup_configs
|
||||||
|
|
||||||
- name: Wait for containers to start for step {{ step }} using paunch
|
- name: Wait for containers to start for step {{ step }} using paunch
|
||||||
|
check_mode: false
|
||||||
async_status:
|
async_status:
|
||||||
jid: "{{ start_containers_async_result.ansible_job_id }}"
|
jid: "{{ start_containers_async_result.ansible_job_id }}"
|
||||||
register: start_containers_outputs
|
register: start_containers_outputs
|
||||||
|
@ -126,6 +128,7 @@
|
||||||
- container_startup_configs
|
- container_startup_configs
|
||||||
|
|
||||||
- name: "Debug output for task: Start containers for step {{ step }}"
|
- name: "Debug output for task: Start containers for step {{ step }}"
|
||||||
|
check_mode: false
|
||||||
debug:
|
debug:
|
||||||
var: start_containers_outputs.stdout_lines | default([]) | union(start_containers_outputs.stderr_lines | default([]))
|
var: start_containers_outputs.stdout_lines | default([]) | union(start_containers_outputs.stderr_lines | default([]))
|
||||||
when: start_containers_outputs.rc is defined
|
when: start_containers_outputs.rc is defined
|
||||||
|
|
Loading…
Reference in New Issue