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

This commit is contained in:
Zuul 2021-01-20 10:55:29 +00:00 committed by Gerrit Code Review
commit 1ca8f627b2
1 changed files with 3 additions and 0 deletions

View File

@ -161,6 +161,7 @@
when: enable_paunch|bool
block:
- name: Start containers for step {{ step }} using paunch
check_mode: false
async: 3600
poll: 0
environment:
@ -179,6 +180,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
@ -189,6 +191,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