Using Git as source of collection in Ansible provides an easy way to implement all the changes once they’re part of the development branch without waiting for a new tagged version shipped to ansible-galaxy.
Use Git as source of collection¶
In this setup, Git repository will be used by Ansible as collection. It’s useful when working on feature development as we can change Git branch and test code live.
Get repository locally¶
In your project, update your
ansible.cfg file to point collection_paths to your local version of ansible-avd
- Get full path to your newly cloned AVD repository.
- Configure your project to use AVD repository as source of collections:
Build & install collection from Git¶
In this approach, an Ansible collection package is built from current Git version and installed locally.
Build and install collection¶
This section should be used only to test collection packaging and to create an offline package to ship on your internal resources if required.