3 {% for node in groups[pod_group] %}
6 {% if "control" in hostvars[node].group_names %}
8 {% elif "compute" in hostvars[node].group_names %}
11 ip: "{{ hostvars[node].ansible_host }}"
12 user: "{{ hostvars[node].ansible_user }}"
13 {% if hostvars[node].ansible_port is defined %}
14 ssh_port: "{{ hostvars[node].ansible_port }}"
16 {% if hostvars[node].ansible_ssh_pass is defined %}
17 password: "{{ hostvars[node].ansible_ssh_pass }}"
19 {% if hostvars[node].ansible_ssh_private_key_file is defined %}
20 key_filename: "{{ hostvars[node].ansible_ssh_private_key_file }}"