Ansible Role: Install traefik proxy as a Docker container
An Ansible role to install traefik proxys as a Docker container.
This role requires Ansible 1.2 or higher.
Ansible variables are listed below with their default values.
traefik_certificates: []
traefik_docker_domain
traefik_group: root
traefik_dir: /etc/traefik
traefik_network: traefik
traefik_user: root
traefik_volumes: []
acme_email: "me@google.com"
acme_domains:
- domain: mydomain.com
sans:
- www.mydomain.com
acme_logging: true
acme_staging: false
---
- hosts: webservers
roles:
- dzangolab.docker_traefik
traefik_certificates:
-
{
CertFile: "/path/to/certificate.crt",
KeyFile: "/path/tto/keyfile.key"
}
traefik_docker_domain: mydomain.com
traefik_network: mydomain
traefik_volumes:
- /etc/ssl:/etc/ssl
MIT