summaryrefslogtreecommitdiffstats
path: root/roles/ands_facts/tasks/nodes.yml
blob: d9f61dfe35442b96f648b4645ad103de77d77aa0 (plain)
1
2
3
4
5
6
7
8
9
10
11
- name: Process all nodes
  include_tasks: "node.yml"
  run_once: true
  delegate_to: "{{ groups['masters'][0] }}"
  with_dict: "{{ hostvars }}"
  when: host.key in groups['ands']
  vars:
    host_id: "{{ host.value['ands_host_id'] }}"
    host_name: "{{ host.value['ansible_hostname'] }}"
  loop_control:
    loop_var: host