Zack Williams | 2bfbbd6 | 2016-06-13 10:18:19 -0700 | [diff] [blame] | 1 | --- |
| 2 | # Collects diagnostic information for the currently running cord-pod config |
| 3 | |
Zack Williams | ba7af9e | 2016-06-27 17:21:09 -0700 | [diff] [blame] | 4 | - name: Create diag_dir fact |
| 5 | set_fact: diag_dir="~/diag-{{ ansible_date_time.iso8601_basic_short }}" |
| 6 | |
Zack Williams | 2bfbbd6 | 2016-06-13 10:18:19 -0700 | [diff] [blame] | 7 | - name: Diagnostics on head node |
| 8 | hosts: head |
| 9 | roles: |
| 10 | - head-diag |
Zack Williams | ba7af9e | 2016-06-27 17:21:09 -0700 | [diff] [blame] | 11 | |
| 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 | |