Install Traefik (Docker)
This role is part of the Warhorse Automation Framework. This role can be used with Warhorse or as a standalone role.
A list of all the variables can be found in ./defaults/main.yml.
traefik_dir
- Traefik container directory
traefik_docker_version
- Docker image version
traefik_ports
- Traefik container ports
traefik_hostname
- Traefik container hostname
traefik_container_name
- Traefik container name
traefik_docker_network
- Traefik container docker network
ansible-galaxy install geerlingguy.docker geerlingguy.pip
ansible-galaxy install warhorse.traefik_docker
- hosts: servers
roles:
- { role: warhorse.traefik_docker }
traefik_hostname: "traefik"
traefik_container_name: "traefik"
traefik_docker_version: "latest"
traefik_docker_labels: {}
traefik_docker_network: "traefik"
traefik_dir: '/opt/docker/traefik'
traefik_ports:
- '80:80'
- '443:443'
MIT/BSD
Ralph May