Add role to ensure per-node output dirs exist
To move the output interface onto the nodes, we need to make sure the dirs exist on the nodes so people can count on them for putting stuff in them. Change-Id: I969218f59c3fc237e1b85f016a7d0c1548a0b073
This commit is contained in:
parent
990cff351d
commit
1921599a33
8
roles/ensure-output-dirs/README.rst
Normal file
8
roles/ensure-output-dirs/README.rst
Normal file
@ -0,0 +1,8 @@
|
||||
Ensure output directories are in place
|
||||
|
||||
**Role Variables**
|
||||
|
||||
.. zuul:rolevar:: zuul_output_dir
|
||||
:default: {{ ansible_user_dir }}/zuul-output
|
||||
|
||||
Base directory for collecting job output.
|
1
roles/ensure-output-dirs/defaults/main.yaml
Normal file
1
roles/ensure-output-dirs/defaults/main.yaml
Normal file
@ -0,0 +1 @@
|
||||
zuul_output_dir: "{{ ansible_user_dir }}/zuul-output"
|
8
roles/ensure-output-dirs/tasks/main.yaml
Normal file
8
roles/ensure-output-dirs/tasks/main.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
- name: Ensure Zuul Output directories exist
|
||||
file:
|
||||
path: "{{ zuul_output_dir }}/{{ item }}"
|
||||
state: directory
|
||||
with_items:
|
||||
- logs
|
||||
- artifacts
|
||||
- docs
|
Loading…
Reference in New Issue
Block a user