zuul-jobs/roles/log-inventory/tasks/main.yaml
Clark Boylan d49893f894 Partial address ansible-lint E208
- replaces ignore with a warn, which displays issue without affecting
  the linting outcome (allowing gradual fixing)
- bumps linter to enable the warn_list feature
- fixes a set of issues, others will be fixed in follow-up

Change-Id: I7d6f8c156b06f68f681943e88860930968e7c9f9
2020-09-29 10:29:01 +01:00

18 lines
553 B
YAML

- name: Ensure Zuul Ansible directory exists
delegate_to: localhost
run_once: true
file:
path: "{{ zuul_info_dir }}"
state: directory
mode: 0755
# We don't use the ansible inventory_file variable because it is not defined
# for nodeless job running on the executor directly:
# https://docs.ansible.com/ansible/latest/porting_guides/porting_guide_2.4.html#inventory
- name: Copy ansible inventory to logs dir
delegate_to: localhost
copy:
src: "{{ zuul.executor.inventory_file }}"
dest: "{{ zuul_info_dir }}"
mode: 0644