Skip to content

Commit 300a2a8

Browse files
committed
Make output directory for diagnostics
Make diagnostics_path_local in the home directory of the stack user to ensure that outputs can be copied back to the host correctly. This approach mirrors the one taken by the stackhpc-cloud-tests custom playbook.
1 parent 20d03ec commit 300a2a8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

etc/kayobe/ansible/diagnostics.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,17 @@
99
- name: Collect diagnostic information
1010
hosts: seed-hypervisor:seed:overcloud:infra-vms
1111
vars:
12-
diagnostics_path_local: "{{ lookup('env', 'PWD') }}/diagnostics"
12+
diagnostics_path_local: "{{ lookup('env', 'HOME') }}/diagnostics"
1313
tasks:
1414
- name: Run diagnostics
1515
block:
16+
- name: Create a local directory to sync diagnostics
17+
ansible.builtin.file:
18+
path: "{{ diagnostics_path_local }}"
19+
state: directory
20+
delegate_to: localhost
21+
run_once: true
22+
1623
- name: Create a temporary directory for diagnostics
1724
ansible.builtin.tempfile:
1825
state: directory

0 commit comments

Comments
 (0)