forked from cytopia/ansible-debian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
inventory
49 lines (42 loc) · 1.23 KB
/
inventory
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
#
# Inventory file
#
# Customize:
# ----------
# 1. Copy host_vars/debian_<dist>.yml to host_vars/<name>.yml
# 2. Customize host_vars/<name>.yml
# 3. Add your <name> to an existing or new group to this 'inventory' file.
# 4. Run the following for your specific profile:
#
# ansible-playbook -i inventory playbook.yml --diff --limit <name> --ask-become-pass
###
### Default example
###
### * Every package enabled
### * No contrib; No non-free repository
### * No custom packages
###
[generic]
# $ ansible-playbook -i inventory playbook.yml --diff --limit generic-all --ask-become-pass
generic-all ansible_connection=local
###
### Cytopia's profile
###
[cytopia]
# $ ansible-playbook -i inventory playbook.yml --diff --limit cytopia-t470p --ask-become-pass
cytopia-t470p ansible_connection=local
###
### Example for customization:
###
#
# Groupname: john
# Hostname: johns-machine
#
# 1. Copy host_vars/debian_<dist>.yml to host_vars/johns-machine.yml
# 2. Customize host_vars/johns-machine.yml
# 3. Uncomment the two lines below to add yourself to the inventory
# 4. Run the following for your specific profile:
#
# ansible-playbook -i inventory playbook.yml --diff --limit johns-machine --ask-become-pass
#[john]
# johns-machine ansible_connection=local