You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gabriel becker baa5bae5f2 Working playbook for docker compose 1 year ago
group_vars/server Working playbook for docker compose 1 year ago
roles/webserver/tasks Working playbook for docker compose 1 year ago
.gitignore Working playbook for docker compose 1 year ago
README.md Working playbook for docker compose 1 year ago
ansible.cfg Working playbook for docker compose 1 year ago
inventory.yml Working playbook for docker compose 1 year ago
requirements.yml Working playbook for docker compose 1 year ago
run.yml Working playbook for docker compose 1 year ago

README.md

Ansible Server

Ansible playbook to setup docker compose and start arbitraty number of compose stacks by using group_variables.

This playbook was tested against a debian 12 image.

Usage

ansible-playbook run.yml

Variables

Should be defined in group_vars/server/vars.yml:

  • services_dir: fodler path containing all folders with docker-compose stacks. they should have the scructure <service>/docker-compose.yml and optionally include <service>/.env files
  • services: list of services in the service_dir container all <service> folders
  • packages: utils packages for linxu environment