Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 1.31 KB

README.md

File metadata and controls

50 lines (33 loc) · 1.31 KB

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