#ansible (2021-03)

ansible

Discussions related to ansible configuration management

2021-03-23

Pierre-Yves avatar
Pierre-Yves

Hello, how do you organize your ansible code with repository ? I have a mono repos but it start to become quite big and I am thinking on creating multiple .. do you have a dedicated repo for common modules ? one per application or application group ?

Mohammed Yahya avatar
Mohammed Yahya

for an Enterprise client this is how we did it:

• repo per Ansible Role ( include molecule tests)

• repo per project that use ansible-galaxy to download roles based on tags for each role ( include tox/molecule tests)

2
andrea.pavan avatar
andrea.pavan

I’m working on the refactoring of a monorepo Ansible project. I’m switching to use Ansible collection, each one on a single repo and then a repo for each “project” conaining the playbook that make use of the collections. Get collections from git is only supported by Ansible 2.10+

2
    keyboard_arrow_up