-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathinventory_complex.yml
52 lines (40 loc) · 1004 Bytes
/
inventory_complex.yml
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
---
all:
# Hosts can be grouped anyway you like
children:
# Here is a group for the Windows host
windows:
# These variables are for 'windows' host group only
vars:
ansible_user: user
ansible_password: pass
ansible_connection: winrm
ansible_winrm_server_cert_validation: ignore
hosts:
windowsserver:
# Here is a group for 'unix' hosts
unix:
# These variables are for 'unix' host group only
vars:
ansible_become: true
ansible_user: user
ansible_become_password: pass
# Unix hosts only
hosts:
redhat-1:
redhat-2:
ubuntu-1:
ubuntu-2:
solaris-1:
solaris-2:
# Here is a group for Mac hosts
darwin:
# These variables are for Mac hosts only
vars:
ansible_become: false
ansible_user: root
ansible_password: pass
# Mac hosts only
hosts:
mac-1:
mac-2: