Skip to content

Latest commit

 

History

History
53 lines (41 loc) · 975 Bytes

README.md

File metadata and controls

53 lines (41 loc) · 975 Bytes

Ansible Role: Install traefik proxy as a Docker container

An Ansible role to install traefik proxys as a Docker container.

Requirements

This role requires Ansible 1.2 or higher.

Role variables

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

Example playbook

---
- 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

License

MIT