sbaerlocher / ansible.traefik

Installs and configures traefik as a docker container on a Linux docker environment.
MIT License
0 stars 5 forks source link
ansible ansible-role traefik

Ansible Role: traefik

This Ansible Role is deprecated, please migrate to arillso.traefik role, more detailed information about migrating can be found at Link

Description

Installs and configures traefik as a docker container on a Linux docker environment.

Installation

ansible-galaxy install sbaerlocher.traefik

Use your own Traefik configuration template

Although the template packaged with this role can be configured using variables, you may want to use your own Traefik configuration file:

  1. Create a templates directory at your playbook level
  2. Create a templates\traefik-conf.toml.j2 file (choose a different name from the default template traefik.toml.j2)
  3. Set the var traefik_configuration_template to traefik-conf.toml.j2 in your playbook

Requirements

None

Role Variables

<<<<<<< HEAD Variable Default Comments (type)
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
======= Variable Default Comments (type)
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

cda21c0ac13bb8eb3feec470a1c2552995c898b4

Dependencies

None

Example Playbook

- hosts: all
  roles:
    - sbaerlocher.traefik

Changelog

1.0.0

Author

License

This project is under the MIT License. See the LICENSE file for the full license text.

Copyright

(c) 2018, Simon Bärlocher