Ansible Role for a simple Traefik reverse proxy
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Renovate Bot daf07587ae
All checks were successful
ci/woodpecker/push/linting Pipeline was successful
chore(package): update cr.simoncor.net/dockerhub/library/traefik docker tag to v3.7.8
2026-07-16 05:48:27 +00:00
.woodpecker chore(package): update cr.simoncor.net/dockerhub/davidanson/markdownlint-cli2 docker tag to v0.23.0 2026-07-01 07:33:37 +00:00
defaults feat: add coraza as optional waf 2026-04-14 17:30:30 +02:00
handlers feat: initial commit 2025-10-10 22:07:00 +02:00
meta feat: initial commit 2025-10-10 22:07:00 +02:00
roles fix: role url 2026-05-26 16:15:20 +02:00
tasks chore(package): update cr.simoncor.net/dockerhub/library/traefik docker tag to v3.7.8 2026-07-16 05:48:27 +00:00
templates/traefik feat: various small fixes to the traefik config 2026-04-15 16:59:21 +02:00
.ansible-lint fix: exclude only sops yml files from lint 2026-07-14 16:24:00 +02:00
.editorconfig chore: add .editorconfig and .gitattributes 2026-05-27 14:24:06 +02:00
.gitattributes chore: add .editorconfig and .gitattributes 2026-05-27 14:24:06 +02:00
.gitignore feat: initial commit 2025-10-10 22:07:00 +02:00
.markdownlint-cli2.jsonc ci: migrate from gitlab ci to woodpecker 2026-05-15 14:13:50 +02:00
.sops.yaml fix: correct sops regex to ya?ml 2026-07-14 16:02:07 +02:00
.yamllint chore: exclude .yml files from lint configs 2026-07-14 16:17:43 +02:00
AGENTS.md chore: add AGENTS.md for opencode agents 2026-02-16 10:27:05 +01:00
ansible.cfg chore: sync linting and config files from common 2026-07-14 11:33:16 +02:00
playbook.yaml feat: implement new role layout 2025-11-01 13:25:18 +01:00
readme.md ci: migrate from gitlab ci to woodpecker 2026-05-15 14:13:50 +02:00
renovate.json feat: initial commit 2025-10-10 22:07:00 +02:00

Ansible Role: Traefik

Install and configure Traefik - a modern HTTP reverse proxy and load balancer.

Variables

Variable Required Default Description
traefik_letsencrypt_email Yes email@example.com Email for Let's Encrypt certificates
traefik_routes Yes [] List of Traefik routes to configure
traefik_routes[].name Yes ------------------- Route domain name
traefik_routes[].service Yes ------------------- Service name
traefik_routes[].host Yes ------------------- Backend host
traefik_routes[].proto Yes ------------------- Backend protocol (http/https)
traefik_routes[].port Yes ------------------- Backend port

Example

traefik_letsencrypt_email: "admin@example.com"
traefik_routes:
  - name: "app.example.com"
    service: "webapp"
    host: "192.168.1.10"
    proto: "http"
    port: "8080"
  - name: "api.example.com"
    service: "api"
    host: "192.168.1.11"
    proto: "https"
    port: "443"