Skip to content

Set up traefik with docker backend and automatic SSL/TLS certificates via Let's Encrypt

License

Notifications You must be signed in to change notification settings

MarcosCela/ansible.traefik

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible.traefik

pipeline status MIT license


Set up Traefik with docker backend and automatic SSL/TLS certificates via Let's Encrypt.

Requirements

You need a target machine with:

  • Docker

If you want to use Docker, there are very useful roles to install it:

  • geerlingguy.docker: Also known as the "Ansible guy", he has a lot of very useful Ansible roles.

Role Variables

The role requires the following variables, and will fail if they are not set:

  • acme_email: We are using Let's Encrypt certificates, and you require an email where you will receive notifications about the status of your certificates, like certificates close to their expiration date. Example: my@mail.org.

Example Playbook

- hosts: proxy
  roles:
     - role: ansible-traefik
       acme_email: my@mail.org

License

MIT

About

Set up traefik with docker backend and automatic SSL/TLS certificates via Let's Encrypt

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published