From 98c073171bba7a1eb9e0ca89d4f02271dbcbb342 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Sun, 9 Jul 2017 10:00:03 -0500 Subject: [PATCH] Move node debug information into a directory Putting it all directly into logs is a bit noisy. Depends-On: I9f03ea408085e3da3ddeb231264e45b1c1fb6896 Change-Id: I82289ec0b66502995278eb897257f345b6c44878 --- roles/debug-ansible/tasks/main.yaml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/roles/debug-ansible/tasks/main.yaml b/roles/debug-ansible/tasks/main.yaml index 160cfef68..a889be97e 100644 --- a/roles/debug-ansible/tasks/main.yaml +++ b/roles/debug-ansible/tasks/main.yaml @@ -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