mirror of
https://github.com/ansible/awx.git
synced 2026-03-05 10:41:05 -03:30
Merge pull request #6639 from ryanpetrello/isolated-rsync-race
fix a race condition in isolated stdout processing
This commit is contained in:
@@ -8,6 +8,10 @@
|
|||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
|
- shell: "tower-expect is-alive {{src}}"
|
||||||
|
register: is_alive
|
||||||
|
ignore_errors: true
|
||||||
|
|
||||||
- name: copy artifacts from the isolated host
|
- name: copy artifacts from the isolated host
|
||||||
synchronize:
|
synchronize:
|
||||||
src: "{{src}}/artifacts/"
|
src: "{{src}}/artifacts/"
|
||||||
@@ -15,6 +19,6 @@
|
|||||||
mode: pull
|
mode: pull
|
||||||
recursive: yes
|
recursive: yes
|
||||||
|
|
||||||
- shell: "tower-expect is-alive {{src}}"
|
- fail:
|
||||||
register: is_alive
|
msg: "isolated task is still running"
|
||||||
failed_when: "is_alive.rc == 0"
|
when: "is_alive.rc == 0"
|
||||||
|
|||||||
Reference in New Issue
Block a user