Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mborne/ansible-traefik
[DEV] Ansible playbook to deploy traefik as a systemd service
https://github.com/mborne/ansible-traefik
ansible devops docker systemd traefik
Last synced: 3 months ago
JSON representation
[DEV] Ansible playbook to deploy traefik as a systemd service
- Host: GitHub
- URL: https://github.com/mborne/ansible-traefik
- Owner: mborne
- License: mit
- Created: 2021-06-18T07:31:36.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-07-15T14:47:31.000Z (6 months ago)
- Last Synced: 2024-10-08T15:14:13.396Z (3 months ago)
- Topics: ansible, devops, docker, systemd, traefik
- Language: Jinja
- Homepage:
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ansible-traefik
Ansible playbook to deploy [Traefik](https://doc.traefik.io/traefik/) as a systemd service **for a DEV usage**.
## Description
* Download binary from [github releases](https://github.com/traefik/traefik/tags) (`/opt/traefik/traefik`)
* Create a systemd service (`/etc/systemd/system/traefik.service`)
* Configure traefik focussing on the exposition of docker containers running on a single host (`/etc/traefik/traefik.toml`)## Parameters
See comments in [defaults/main.yml](defaults/main.yml) and [templates/etc/traefik/traefik.toml.j2](templates/etc/traefik/traefik.toml.j2)
## Warning
**Note that security and playbook stability is not guaranteed!**
For example, a dedicated traefik user should be used to run the service (so it might change soon...).
## Notes
* [Traefik as a service vs traefik as a container](docs/service-vs-container.md)
* [Traefik - Sample additional config files](docs/sample-config.md)
* [Troubleshooting - Failed to allocate directory watch: Too many open files](docs/too-many-open-files.md)## License
[MIT](LICENSE)