kayobe/roles/kayobe-diagnostics/tasks/pre.yml
Maksim Malchuk 7088ff2c2f CI: Fix kayobe-seed-images-* jobs
Followup on I0d7ab0d8ff5b16ac5de8e50e63400bd455996555.
Fix issue with 'permission denied' while doing stat files.
Also we collect kolla-build configs for CI.

Change-Id: I209459ecf5b1a6e5f541cbc72d74aa7defb459d4
Signed-off-by: Maksim Malchuk <maksim.malchuk@gmail.com>
2023-05-31 19:28:33 +00:00

21 lines
453 B
YAML

---
- name: Ensure node log directory exists
file:
path: "{{ kayobe_diagnostics_log_dir }}"
state: "directory"
- name: Ensure node log subdirectories exist
file:
path: "{{ kayobe_diagnostics_log_dir }}/{{ item }}"
state: "directory"
mode: 0777
with_items:
- "docker_logs"
- "kayobe_configs"
- "kolla_configs"
- "kolla_node_configs"
- "kolla_build_configs"
- "system_logs"
- "kolla"
- "ansible"