zuul-jobs/roles/ensure-output-dirs/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

23 lines
471 B
YAML

- name: Empty Zuul Output directories by removing them
file:
path: "{{ zuul_output_dir }}/{{ zj_output_dir }}"
state: absent
with_items:
- logs
- artifacts
- docs
loop_control:
loop_var: zj_output_dir
- name: Ensure Zuul Output directories exist
file:
path: "{{ zuul_output_dir }}/{{ zj_output_dir }}"
state: directory
mode: 0755
with_items:
- logs
- artifacts
- docs
loop_control:
loop_var: zj_output_dir