Installs traefik in a docker container and configures it.
- Docker (i use this one: geerlingguy.docker)
- Python docker library (for ansible)
traefik_static_conf:
providers:
file:
filename: /etc/traefik/dynamic_conf.yaml
entryPoints:
web:
address: :80
traefik_dynamic_conf: {}
traefik_ports:
- "80:80"
traefik_docker_sock: True
- hosts: servers
roles:
- { role: Phill93.traefik}
Thanks for the markdown version goes to IQAndreas