This is an Ansible Playbook to monitor a git repo for players to add (or remove) and then restart the relevant
docker containers using docker-compose
. I use this to manage the players on a minecraft server I run.
In this repo, you'll find the actual ansible playbook (playbook.yml
), the crontab-able run_playbook.sh
(which
silences unchanged plays) and the template I'm using (templates=docker-compose.yml
). There is also an example vars
file (host_vars=localhost=vars.yml
) to show the basics of what this file would look like. Note that directory
structures in gists are not permitted, so I've replaced /
with =
in each filename.