https://github.com/smartlogic/ansible-role-traefik
https://github.com/smartlogic/ansible-role-traefik
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/smartlogic/ansible-role-traefik
- Owner: smartlogic
- Created: 2018-01-08T20:06:00.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2025-05-30T14:20:52.000Z (about 1 year ago)
- Last Synced: 2026-01-19T16:46:27.750Z (5 months ago)
- Language: Jinja
- Size: 8.79 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Traefik
Basic traefik configuration
## Install to requirements.yml
```
- src: git+git@github.com:smartlogic/ansible-role-traefik
name: traefik
version: 2.0.0
```
## Requirements
None
## Role Variables
- `traefik_version` - Which version of traefik to download
- Default: `3.4.1`
- `traefik_checksum` - The sha256 checksum of the traefik download, based on the `linux_amd64` binary, checksums available at https://github.com/traefik/traefik/releases
- `traefik_config` - The file to use for `config.toml`
- Default: `config.toml` from the role
- `traefik_config_dir` - The folder Traefik will watch for config files
- Default: `/opt/traefik/config`
- `traefik_config_files` - Array of other files to place in the config_dir
- Default: `[]`
## Dependencies
None
## Example Configuration
```yaml
traefik_config: "{{ playbook_dir }}/files/traefik-config.toml"
traefik_config_files:
- "{{ playbook_dir }}/files/app-config.toml"
- "{{ playbook_dir }}/files/app-ssl.toml"
```
## Example Playbook
```yaml
- hosts: servers
roles:
- { role: traefik, tags: ["web", "traefik"] }
```
## License
MIT
## Author Information
SmartLogic. https://smartlogic.io