zuul-jobs/roles/debug-ansible/tasks/main.yaml

28 lines
845 B
YAML

- 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_info_dir }}/ansible-hostvars.{{ inventory_hostname }}.yaml"
src: templates/ansible-hostvars.j2
- name: Collect information about zuul worker
zuul_debug_info:
image_manifest: "{{ zuul_image_manifest|default(omit) }}"
traceroute_host: "{{ zuul_traceroute_host|default(omit) }}"
register: zdi
- name: Write out all zuul information for each host
delegate_to: localhost
template:
dest: "{{ zuul_info_dir }}/zuul-info.{{ inventory_hostname }}.txt"
src: templates/zuul-info.j2