summaryrefslogtreecommitdiffstats
path: root/roles/ands_facts/tasks/nodes.yml
blob: 822b380d3f24736d6270ffa8a61c4d6941c02ab5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
- name: Process all nodes
  include_tasks: "node.yml"
  args:
    apply:
      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