chore(traefik): prefix all traefi vars with traefik_

This commit is contained in:
Bert-Jan Fikse 2026-01-22 17:29:56 +01:00
parent d0ae0a4df9
commit 13eb79803f
Signed by: bert-jan
GPG key ID: C1E0AB516AC16D1A
7 changed files with 58 additions and 58 deletions

View file

@ -48,7 +48,7 @@
path: "{{ docker_volume_dir }}/letsencrypt"
state: directory
mode: '0755'
when: cert_mode == 'acme'
when: traefik_cert_mode == 'acme'
- name: Create traefik Docker network
community.docker.docker_network:
@ -76,14 +76,14 @@
dest: "{{ docker_volume_dir }}/config/dashboard.yml"
mode: '0644'
notify: restart traefik
when: enable_dashboard | bool and dashboard_domain | length > 0
when: traefik_enable_dashboard | bool and traefik_dashboard_domain | length > 0
- name: Remove dashboard routing configuration when not needed
file:
path: "{{ docker_volume_dir }}/config/dashboard.yml"
state: absent
notify: restart traefik
when: not (enable_dashboard | bool) or dashboard_domain | length == 0
when: not (traefik_enable_dashboard | bool) or traefik_dashboard_domain | length == 0
- name: Create docker-compose file for traefik
template: