Merge "[Ussuri/Train] Check mode doesn't work for async tasks" into stable/ussuri

This commit is contained in:
Zuul 2020-12-17 15:07:23 +00:00 committed by Gerrit Code Review
commit efb23bfaf7
1 changed files with 3 additions and 0 deletions

View File

@ -97,6 +97,7 @@
when: enable_paunch|default(true)
block:
- name: Start containers for step {{ step }} using paunch
check_mode: false
become: true
async: 3600
poll: 0
@ -116,6 +117,7 @@
- container_startup_configs
- name: Wait for containers to start for step {{ step }} using paunch
check_mode: false
async_status:
jid: "{{ start_containers_async_result.ansible_job_id }}"
register: start_containers_outputs
@ -126,6 +128,7 @@
- container_startup_configs
- name: "Debug output for task: Start containers for step {{ step }}"
check_mode: false
debug:
var: start_containers_outputs.stdout_lines | default([]) | union(start_containers_outputs.stderr_lines | default([]))
when: start_containers_outputs.rc is defined