diff --git a/roles/log-inventory/README.rst b/roles/log-inventory/README.rst new file mode 100644 index 000000000..ea7b523f9 --- /dev/null +++ b/roles/log-inventory/README.rst @@ -0,0 +1,3 @@ +Log the inventory used to run the job to the job's log dir. + +This will result in the log collection roles logging the job inventory. diff --git a/roles/log-inventory/tasks/main.yaml b/roles/log-inventory/tasks/main.yaml new file mode 100644 index 000000000..e3dad5544 --- /dev/null +++ b/roles/log-inventory/tasks/main.yaml @@ -0,0 +1,5 @@ +- name: Copy ansible inventory to logs dir + delegate_to: localhost + copy: + src: "{{ inventory_file }}" + dest: "{{ zuul_info_dir }}"