Copy inventory as part of validate host

We are collcting information about the running zuul system in
validate-host. Move the inventory collection here with the rest of
it. Also, put it in zuul-info. It's debugging info about the ansible
layer.

Change-Id: I5dded8f3545e725cbc11c1eae194857fe9623ab1
This commit is contained in:
Monty Taylor 2017-08-18 19:27:13 -05:00
parent 674e7347e4
commit 0bb86fb256
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
1 changed files with 6 additions and 0 deletions

View File

@ -30,3 +30,9 @@
template:
dest: "{{ zuul_info_dir }}/zuul-info.{{ inventory_hostname }}.txt"
src: templates/zuul-info.j2
- name: Copy ansible inventory to logs dir
delegate_to: localhost
copy:
src: "{{ inventory_file }}"
dest: "{{ zuul_info_dir }}"