noheat: use Python 3 as Ansible interpreter
[integration.git] / deployment / noheat / infra-openstack / ansible / templates / inventory.ini.j2
1 [all]
2 {% for item in hosts %}
3 {{ item.key }} ansible_host={{ item.value }}
4 {% endfor %}
5
6 [operator]
7 {% for item in hosts %}
8 {% if "operator" in item.key %}
9 {{ item.key }}
10 {% endif %}
11 {% endfor %}
12
13 [control]
14 {% for item in hosts %}
15 {% if "control" in item.key %}
16 {{ item.key }}
17 {% endif %}
18 {% endfor %}
19
20 [workers]
21 {% for item in hosts %}
22 {% if "worker" in item.key %}
23 {{ item.key }}
24 {% endif %}
25 {% endfor %}
26
27 [nfs]
28 {% for item in hosts %}
29 {% if "nfs" in item.key %}
30 {{ item.key }}
31 {% endif %}
32 {% endfor %}
33
34 [nfs:vars]
35 nfs_role="server"
36
37 [control:vars]
38 nfs_role="client"
39
40 [workers:vars]
41 nfs_role="client"
42
43 [all:vars]
44 ansible_ssh_private_key_file="~/.ssh/{{ keypair.name }}"
45 ansible_ssh_common_args='-o StrictHostKeyChecking=no'
46 ansible_python_interpreter="/usr/bin/python3"