
Did didn't have ansible-lint setup properly, as a results our roles weren't actually linted properly. Fix variable linting issues and ignore ANSIBLE0012. Change-Id: I07aa940245e700c9f08df0f1920720f0ed9d3de0 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
33 lines
940 B
YAML
33 lines
940 B
YAML
- name: Define zuul_info_dir fact
|
|
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: Collect information about the host
|
|
setup:
|
|
register: setupinfo
|
|
|
|
- name: Write out all ansible variables/facts known for each host
|
|
delegate_to: localhost
|
|
template:
|
|
dest: "{{ zuul_info_dir }}/host-info.{{ inventory_hostname }}.yaml"
|
|
src: templates/host-info.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
|