This is an Ansible playbook to install multiple applications on a single Ubuntu server with Docker and Traefik 2.x updated with Watchtower.
- Ansible >= 2.5
This playbook is designed to install a bunch of useful tools:
Copy the hosts example file and change the values to your needs:
$ cp hosts.example.ini hosts.ini
Setup your variables in the playbook.yml
file.
Then run the playbook:
$ ansible-playbook -i hosts.ini playbook.yml
# For one role only
$ ansible-playbook -i hosts.ini playbook.yml --tags "traefik"
I use this playbook to deploy Traefik and Docker in production to host self-hosted services.
Do not hesitate to contribute to the project by adapting or adding features ! Bug reports or pull requests are welcome.
This project is released under the MIT license.