DebOps inventory layout

Due to the playbooks provided by the project considered “read only” to make updates easier, it's a good idea to pick good host definition in the hosts variable of each playbook. Since there are many playbooks, synchronization is a must.

Here you can find names of the host groups used by DebOps. This list is not yet used by the project, right now it's just a proposal which might be implemented.

Main groups

These host groups are expected to be in all Ansible inventories.

[debops_all_hosts]

This host group contains all hosts in the inventory managed by DebOps.

[debops_service_<name>]

Each playbook related to a service managed by DebOps has its own host group (some playbooks will be executed on all DebOps hosts). This should help prevent installing and configuring services on wrong hosts.

Example inventory

These are example Ansible inventories which can be used with DebOps playbooks.

Simple set of hosts

[debops_all_hosts]
alpha.example.org
beta.example.org
other.example.org

Multiple groups of hosts

[debops_all_hosts:children]
new-york
london
 
[new-york]
ec2-host1 ansible_ssh_host=ec2-ip1.amazon.com
ec2-host2 ansible_ssh_host=ec2-ip2.amazon.com
 
[london]
do-host1 ansible_ssh_host=do-ip1.digitalocean.com
do-host2 ansible_ssh_host=do-ip2.digitalocean.com

Inventory with Ansible Controller managed by DebOps

[debops_all_hosts]
control.example.org ansible_connection=local
other.example.org
Print/export