Move node debug information into a directory

Putting it all directly into logs is a bit noisy.

Depends-On: I9f03ea408085e3da3ddeb231264e45b1c1fb6896
Change-Id: I82289ec0b66502995278eb897257f345b6c44878
This commit is contained in:
Monty Taylor 2017-07-09 10:00:03 -05:00
parent 869d7f5744
commit 98c073171b
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
1 changed files with 12 additions and 2 deletions

View File

@ -1,7 +1,17 @@
- set_fact:
zuul_info_dir: "{{ zuul.executor.log_root }}/zuul-info"
- name: Ensure Zuul Ansible directory exists
delegate_to: localhost
run_once: true
file:
path: "{{ zuul_info_dir }}"
state: directory
- name: Write out all ansible variables/facts known for each host
delegate_to: localhost
template:
dest: "{{ zuul.executor.log_root }}/ansible-hostvars.{{ inventory_hostname }}.yaml"
dest: "{{ zuul_info_dir }}/ansible-hostvars.{{ inventory_hostname }}.yaml"
src: templates/ansible-hostvars.j2
- name: Collect information about zuul worker
@ -13,5 +23,5 @@
- name: Write out all zuul information for each host
delegate_to: localhost
template:
dest: "{{ zuul.executor.log_root }}/zuul-info.{{ inventory_hostname }}.txt"
dest: "{{ zuul_info_dir }}/zuul-info.{{ inventory_hostname }}.txt"
src: templates/zuul-info.j2