split out head/compute diag roles, collect diag on head node
diff --git a/roles/compute-diag/tasks/main.yml b/roles/compute-diag/tasks/main.yml
new file mode 100644
index 0000000..050c7c5
--- /dev/null
+++ b/roles/compute-diag/tasks/main.yml
@@ -0,0 +1,16 @@
+---
+# compute-diag/tasks/main.yml
+
+- name: Create diag_dir subdirs
+ file:
+ dest="{{ diag_dir }}/{{ inventory_hostname }}"
+
+- name: Compute node diag collection
+ shell: "{{ item }} > {{ diag_dir }}/{{ inventory_hostname}}/{{ item | regex_replace('[^\\w-]', '_')}}"
+ with_items:
+ - "arp -n"
+ - "brctl show"
+ - "cat /etc/resolv.conf"
+ - "ifconfig -a"
+ - "route -n"
+