-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinventory_vagrant
65 lines (51 loc) · 1.58 KB
/
inventory_vagrant
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# open-vpn demo inventory
[centos_vag]
c7 ansible_host=192.168.10.107
[centos8_vag]
c8 ansible_host=192.168.10.108
a8 ansible_host=192.168.10.188
r8 ansible_host=192.168.10.189
[debian_vag]
d9 ansible_host=192.168.10.209
d10 ansible_host=192.168.10.210
# requires python3.5 installed prior to running ansible
# and setting ansible_python_interpreter=/usr/bin/python3 below
[fedora_vag]
f32 ansible_host=192.168.10.132
f33 ansible_host=192.168.10.133
f34 ansible_host=192.168.10.134
# requires python3 installed prior to running ansible
# and setting ansible_python_interpreter=/usr/bin/python3 below
[ubuntu_vag]
u18 ansible_host=192.168.10.118
u20 ansible_host=192.168.10.120
[rhel_vag]
c8 ansible_host=192.168.10.108
a8 ansible_host=192.168.10.188
r8 ansible_host=192.168.10.189
f32 ansible_host=192.168.10.132
f33 ansible_host=192.168.10.133
f34 ansible_host=192.168.10.134
[all:children]
centos_vag
centos8_vag
debian_vag
fedora_vag
ubuntu_vag
# centos6+7 uses python2 for ansible interpeter
[centos_vag:vars]
ansible_python_interpreter=/usr/bin/python
# centos8 uses python3 for ansible interpeter
[centos8_vag:vars]
ansible_python_interpreter=/usr/libexec/platform-python
[debian_vag:vars]
ansible_python_interpreter=/usr/bin/python3
# https://docs.ansible.com/ansible/latest/reference_appendices/python_3_support.html
[fedora_vag:vars]
ansible_python_interpreter=/usr/bin/python3
[ubuntu_vag:vars]
ansible_python_interpreter=/usr/bin/python3
[all:vars]
ansible_ssh_user=vagrant
ansible_ssh_private_key_file=~/.vagrant.d/insecure_private_key
ansible_ssh_common_args='-o StrictHostKeyChecking=no'