Ansible Role for a simple Traefik reverse proxy
Find a file
2026-04-14 17:38:33 +02: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 feat: implement new role layout 2025-11-01 13:25:18 +01:00
tasks chore(package): update docker.io/traefik docker tag to v3.6.13 2026-04-08 04:47:26 +00:00
templates/traefik fix: ruleset for v0.3.0 2026-04-14 17:38:33 +02:00
.ansible-lint feat: initial commit 2025-10-10 22:07:00 +02:00
.gitignore feat: initial commit 2025-10-10 22:07:00 +02:00
.gitlab-ci.yml ci: move gitleaks to component 2026-01-19 17:16:59 +01:00
.markdownlint-cli2.jsonc feat: initial commit 2025-10-10 22:07:00 +02:00
.yamllint feat: initial commit 2025-10-10 22:07:00 +02:00
AGENTS.md chore: add AGENTS.md for opencode agents 2026-02-16 10:27:05 +01:00
playbook.yaml feat: implement new role layout 2025-11-01 13:25:18 +01:00
readme.md docs: standardize readme format 2026-04-10 09:00:18 +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"