if runner crashes, attempt to record why

this attempts to surface the underlying runner exception for tracebacks
like this one:

FileNotFoundError: [Errno 2] No such file or directory:
'/tmp/awx_41_93gtgv25/artifacts/41/status'
This commit is contained in:
Ryan Petrello
2019-04-15 11:35:42 -04:00
parent e8de7bc845
commit 387682ed8d
3 changed files with 27 additions and 7 deletions

View File

@@ -21,6 +21,12 @@
delete: yes
recursive: yes
- name: Copy daemon log from the isolated host
synchronize:
src: "{{src}}/daemon.log"
dest: "{{src}}/daemon.log"
mode: pull
- name: Fail if previous check determined that process is not alive.
fail:
msg: "isolated task is still running"