Choose a unit of organization¶
I'd previously chosen roles as a unit of organization and tags, but that is far too unsustainable organizationally
Domains/stacks are the new unit of organization:
ansible/
├── ansible.cfg
├── inventories/
├── group_vars/
├── host_vars/
├── roles/ # global / base roles only
└── collections/
└── ansible_collections/
└── infra/
├── kubernetes/
├── cloud/
├── dns/
├── desktop/
├── databases/
├── ci_cd/
├── virtualization/
└── security/
mkdir -p ~/ansible/collections/ansible_collections/
Create a new collection¶
cd ~/ansible/collections/ansible_collections
ansible-galaxy collection init infra.kvm
Create a new role¶
cd ~/ansible/collections/ansible_collections/infra/kvm
ansible-galaxy role init roles/kvm_hypervisor