Skip to content

An Ansible role to create common services as Docker containers

License

Notifications You must be signed in to change notification settings

opichon/ansible-docker-traefik

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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: "[email protected]"
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

About

An Ansible role to create common services as Docker containers

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages