A MORE ADVANCED STATIC INVENTORY EXAMPLE

Ansible Terminal
# A more advanced static inventory example:
[control]
mainserver ansible_host=10.42.0.2

[web]
node-[1:30] ansible_host=10.42.0.[31:60]

[haproxy]
haproxy ansible_host=10.42.0.100

[all:vars]
ansible_user=kev
ansible_ssh_private_key_file=/home/kev/.ssh/id_rsa
    

A MORE ADVANCED STATIC INVENTORY EXAMPLE

Ansible Terminal
# A more advanced static inventory example:
[control]
mainserver ansible_host=10.42.0.2

[web]
node-[1:30] ansible_host=10.42.0.[31:60]

[haproxy]
haproxy ansible_host=10.42.0.100

[all:vars]
ansible_user=kev
ansible_ssh_private_key_file=/home/kev/.ssh/id_rsa
    

A MORE ADVANCED STATIC INVENTORY EXAMPLE

Ansible Terminal
# A more advanced static inventory example:
[control]
mainserver ansible_host=10.42.0.2

[web]
node-[1:30] ansible_host=10.42.0.[31:60]

[haproxy]
haproxy ansible_host=10.42.0.100

[all:vars]
ansible_user=kev
ansible_ssh_private_key_file=/home/kev/.ssh/id_rsa
    

A MORE ADVANCED STATIC INVENTORY EXAMPLE

Ansible Terminal
# A more advanced static inventory example:
[control]
mainserver ansible_host=10.42.0.2

[web]
node-[1:30] ansible_host=10.42.0.[31:60]

[haproxy]
haproxy ansible_host=10.42.0.100

[all:vars]
ansible_user=kev
ansible_ssh_private_key_file=/home/kev/.ssh/id_rsa