This repo contain the ansible role that configure docker and docker-compose for the servers.
- install docker (rootless or rootfull) and docker compose (docker compose version 1 or 2).
- install docker pip package to be compatible with ansible's docker module (ansible use python's docker module)
- Manage user and group related to docker.
- Configure docker daemon.
- None
- Add the role git source in "requirements.yml" file :
- name: role_name
scm: git
src: git@github.com:tiny-company/<repository_name>.git
version: main
- And then use the galaxy command to load the file dependencies :
ansible-galaxy install -r requirements.yml
- Or manually get the playbook as collection (with ansible-galaxy) :
ansible-galaxy collection install git@github.com:tiny-company/<repository_name>.git
For an exhaustive list of variables check the defaults file. Ideally, all values will have commentaries describing what are their purposes and by the default value you can tell the type.