sbaerlocher.traefik
Ansible Role: traefik
This Ansible Role is outdated. Please switch to the arillso.traefik role. You can find more information about the migration at this link.
Description
This role installs and sets up Traefik as a Docker container in a Linux Docker environment.
Installation
Run the following command to install:
ansible-galaxy install sbaerlocher.traefik
Use Your Own Traefik Configuration
While you can use the built-in template with variables, you might want to use your own Traefik configuration file:
- Create a
templates
folder at the same level as your playbook. - Add a file named
traefik-conf.toml.j2
in thetemplates
folder (use a different name than the defaulttraefik.toml.j2
). - In your playbook, set the variable
traefik_configuration_template
totraefik-conf.toml.j2
.
Requirements
There are no special requirements.
Role Variables
Variable | Default | Notes |
---|---|---|
traefik_sendanonymoususage | false | |
traefik_debug | false | |
traefik_dir | /etc/traefik | |
traefik_hostname | "{{ inventory_hostname }}" | |
traefik_https | false | |
traefik_https_redirect | false | |
traefik_log_level | ERROR | |
traefik_network | traefik_default | |
traefik_api | false | |
traefik_ping | false | |
traefik_configuration_file | default provided |
Dependencies
There are no dependencies.
Example Playbook
Here’s a simple example:
- hosts: all
roles:
- sbaerlocher.traefik
Changelog
1.0.0
- Initial release.
Author
License
This project is licensed under the MIT License. See the LICENSE file for details.
Copyright
(c) 2018, Simon Bärlocher
Informazioni sul progetto
Installs and configures traefik as a docker container on a Linux docker environment.
Installa
ansible-galaxy install sbaerlocher.traefik
Licenza
mit
Download
61.6k
Proprietario
Technology Evangelist / System Engineer by @whatwedo / Project Manager @arillso / @ansible and @nuxt fan / Based in #Bern