fix a race condition in isolated stdout processing

This commit is contained in:
Ryan Petrello 2017-06-19 15:53:49 -04:00
parent 157835ceac
commit c35d83df13

View File

@ -8,6 +8,10 @@
tasks:
- shell: "tower-expect is-alive {{src}}"
register: is_alive
ignore_errors: true
- name: copy artifacts from the isolated host
synchronize:
src: "{{src}}/artifacts/"
@ -15,6 +19,6 @@
mode: pull
recursive: yes
- shell: "tower-expect is-alive {{src}}"
register: is_alive
failed_when: "is_alive.rc == 0"
- fail:
msg: "isolated task is still running"
when: "is_alive.rc == 0"