mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 23:07:42 -02:30
process host facts for iso runs
* Move isolated clean to our final run hook * ISO and non-iso code path now share the post-fact-processing code
This commit is contained in:
@@ -18,20 +18,10 @@
|
||||
src: "{{src}}/artifacts/"
|
||||
dest: "{{src}}/artifacts/"
|
||||
mode: pull
|
||||
delete: yes
|
||||
recursive: yes
|
||||
|
||||
- name: Fail if previous check determined that process is not alive.
|
||||
fail:
|
||||
msg: "isolated task is still running"
|
||||
when: "is_alive.rc == 0"
|
||||
|
||||
- stat: path="{{src}}/facts/"
|
||||
register: fact_cache
|
||||
|
||||
- name: Copy gathered facts from the isolated host.
|
||||
synchronize:
|
||||
src: "{{src}}/facts/"
|
||||
dest: "{{src}}/facts/"
|
||||
delete: yes # delete fact cache records that go missing via clear_facts
|
||||
mode: pull
|
||||
when: fact_cache.stat.exists
|
||||
|
||||
Reference in New Issue
Block a user