Merge "[Ussuri/Train] Check mode doesn't work for async tasks" into stable/train
This commit is contained in:
commit
1ca8f627b2
|
@ -161,6 +161,7 @@
|
||||||
when: enable_paunch|bool
|
when: enable_paunch|bool
|
||||||
block:
|
block:
|
||||||
- name: Start containers for step {{ step }} using paunch
|
- name: Start containers for step {{ step }} using paunch
|
||||||
|
check_mode: false
|
||||||
async: 3600
|
async: 3600
|
||||||
poll: 0
|
poll: 0
|
||||||
environment:
|
environment:
|
||||||
|
@ -179,6 +180,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
|
||||||
|
@ -189,6 +191,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