dzangolab.docker_traefik
Ansible Role: Install Traefik Proxy as a Docker Container
This is an Ansible role for installing the Traefik proxy as a Docker container.
Requirements
To use this role, you need Ansible version 1.2 or higher.
Role Variables
Here are the Ansible variables you can use with their default values.
traefik__access_log_format: common
traefik__acme_caserver: https://acme-v02.api.letsencrypt.org/directory
traefik__acme_email:
traefik__dashboard: true
traefik__dashboard_basicauth_passwords: []
traefik__deploy_dir:
traefik__deploy_group:
traefik__deploy_user:
traefik__expose_by_default: false
traefik__image: traefik:v2.5.3
traefik__label: traefik
traefik__log_dir: /var/log/traefik
traefik__log_format: common
traefik__log_level: ERROR
traefik__network: traefik
traefik__refresh: 15
traefik__state: started | stopped
Example Playbook
Here’s how you can use it in a playbook:
---
- hosts: webservers
roles:
- dzangolab.docker_traefik
traefik_certificates:
-
{
CertFile: "/path/to/certificate.crt",
KeyFile: "/path/to/keyfile.key"
}
traefik__domain: mydomain.com
traefik__network: mydomain
License
This role is licensed under the MIT License.
Informazioni sul progetto
Installs traefik proxy and other useful services as docker containers
Installa
ansible-galaxy install dzangolab.docker_traefik
Licenza
mit
Download
110
Proprietario
tech accelerator