blob: 3e7a157db8d186d4f25dbc35c941918030f32d72 [file] [log] [blame]
Zack Williams2bfbbd62016-06-13 10:18:19 -07001---
2# Collects diagnostic information for the currently running cord-pod config
3
Zack Williamsba7af9e2016-06-27 17:21:09 -07004- name: Create diag_dir fact
5 set_fact: diag_dir="~/diag-{{ ansible_date_time.iso8601_basic_short }}"
6
Zack Williams2bfbbd62016-06-13 10:18:19 -07007- name: Diagnostics on head node
8 hosts: head
9 roles:
10 - head-diag
Zack Williamsba7af9e2016-06-27 17:21:09 -070011
12- name: Diagnostics on compute nodes
13 hosts: compute
14 roles:
15 - compute-diag
16
17- name: Collect compute node diagnostics on head node
18 hosts: compute
19 synchronize:
20 src: "{{ diag_dir }}"
21 dest: "{{ diag_dir }}"
22 recursive: yes
23 delegate_to: "{{ groups['head'][0] }}"
24