To install the collection, add a galaxy_requirements.yml file to your ansible code containing :
collections:
- name: https://github.com/suitenumerique/st-ansible.git
type: git
version: "1"Then use ansible-galaxy install -r galaxy_requirements.yml.
The collection contains the following roles:
- suitenumerique.st.podman
- suitenumerique.st.messages
- suitenumerique.st.drive
- suitenumerique.st.keycloak
- suitenumerique.st.alloy
- suitenumerique.st.restic
Create a virtualenv using:
python3 -m virtualenv ./venvAnd activate it:
source ./venv/bin/activateInstall dependencies:
pip install -r requirements.txtBefore building, run:
make docsto update the documentations and propagate the default values to roles//defaults from the argument_specs.yml files
Then build:
make buildThis will output a line with the location of the built file: Created collection for suitenumerique.st at <path>/suitenumerique-st-<version>.tar.gz
In your consumer repository's galaxy_requirements.yml, overwrite the collections key:
collections:
- name: <path>/suitenumerique-st-<version>.tar.gz
version: <version>
type: fileand run
ansible-galaxy install -r galaxy_requirements.yml --forceto forcefully update the dependency. You can then repeat the make docs, make build and the previous update command to update the galaxy collection.
This codebase is under MIT License.
See LICENSE for full text.