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 as illustrated here:
- https://gitlab.com/andrewmercer/ansible/-/tree/main/collections/ansible_collections
The entire project structure can be seen here:
- https://gitlab.com/andrewmercer/ansible
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