summaryrefslogtreecommitdiffstats
path: root/roles/ands_facts/tasks/nodes.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/ands_facts/tasks/nodes.yml')
-rw-r--r--roles/ands_facts/tasks/nodes.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/roles/ands_facts/tasks/nodes.yml b/roles/ands_facts/tasks/nodes.yml
new file mode 100644
index 0000000..ebe8091
--- /dev/null
+++ b/roles/ands_facts/tasks/nodes.yml
@@ -0,0 +1,10 @@
+- name: Process all nodes
+ include_tasks: "node.yml"
+ run_once: true
+ delegate_to: "{{ groups['masters'][0] }}"
+ with_dict: "{{ hostvars }}"
+ vars:
+ host_id: "{{ host.value['ands_host_id'] }}"
+ host_name: "{{ host.value['ansible_hostname'] }}"
+ loop_control:
+ loop_var: host