Install and configure traefik
This role is a part of my OPS project, follow this link to see it in action. OPS provides a lot of stuff, like a vagrant file for development VMs, playbooks for roles orchestration, inventory files, examples for roles configuration, ansible configuration file, and many more.
This role depends on jebovic.supervisor role to be fully functional
# Traefik installation configuration
traefik_install_dir: /usr/local/bin
traefik_binary_url: https://github.com/containous/traefik/releases/download/v1.1.2/traefik_linux-amd64
traefik_bin_path: "{{ traefik_install_dir }}/traefik"
traefik_config_dir: /etc/traefik
traefik_static_config: |
# Add your custom static config here
traefik_dynamic_config: |
# Add your custom dynamic config here
- hosts: servers
roles:
- { role: jebovic.traefik }
- traefik_config : only update config and restart service
MIT
Jérémy Baumgarth https://github.com/jebovic