#ansible (2021-03)
Discussions related to ansible configuration management
2021-03-23
![Pierre-Yves avatar](https://secure.gravatar.com/avatar/713064f85b426dae41765cd5dfc915f3.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0011-72.png)
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](https://avatars.slack-edge.com/2020-12-17/1590276740676_9fdeb6c9ef89d13e6414_72.png)
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)
![Pierre-Yves avatar](https://secure.gravatar.com/avatar/713064f85b426dae41765cd5dfc915f3.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0011-72.png)
ha I see thanks @Mohammed Yahya for the hint, I will do as you suggested https://docs.ansible.com/ansible/latest/user_guide/collections_using.html#installing-a-collection-from-a-git-repository
![andrea.pavan avatar](https://avatars.slack-edge.com/2021-03-15/1855119617349_a8ddf9f3736b220e1352_72.jpg)
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+
![stephane.robert avatar](https://secure.gravatar.com/avatar/3804ef43eec9b163f6c52feceda60f18.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0008-72.png)
Another solution create a collection with submodule git for roles