chore(traefik): prefix all traefi vars with traefik_
This commit is contained in:
parent
d0ae0a4df9
commit
13eb79803f
7 changed files with 58 additions and 58 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue