Ansible playbook to deploy Traefik as a systemd service for a DEV usage.
- Download binary from github releases (
/opt/traefik/traefik
) - Create a systemd service (
/etc/systemd/system/traefik.service
) - Configure traefik focussing on the exposition of docker containers running on a single host (
/etc/traefik/traefik.toml
)
See comments in defaults/main.yml and templates/etc/traefik/traefik.toml.j2
Note that security and playbook stability is not guaranteed!
For example, a dedicated traefik user should be used to run the service (so it might change soon...).