diff --git a/dev/host_vars/nextcloud.yml b/dev/host_vars/nextcloud.yml index 61f0788..0996d3e 100644 --- a/dev/host_vars/nextcloud.yml +++ b/dev/host_vars/nextcloud.yml @@ -2,6 +2,7 @@ docker_user: vagrant # traefik +traefik_dashboard: true traefik_domain: traefik.vm.krislamo.org traefik_auth: admin:$apr1$T1l.BCFz$Jyg8msXYEAUi3LLH39I9d1 # admin:admin diff --git a/roles/traefik/defaults/main.yml b/roles/traefik/defaults/main.yml index da19be4..b183d1d 100644 --- a/roles/traefik/defaults/main.yml +++ b/roles/traefik/defaults/main.yml @@ -1,5 +1,6 @@ traefik_name: traefik traefik_version: latest +traefik_dashboard: false traefik_options: - "--entrypoints.web.address=:80" - "--api.dashboard=true" diff --git a/roles/traefik/tasks/main.yml b/roles/traefik/tasks/main.yml index 92ec5ce..7be6b4a 100644 --- a/roles/traefik/tasks/main.yml +++ b/roles/traefik/tasks/main.yml @@ -25,6 +25,6 @@ traefik.http.routers.traefik.middlewares: "auth@docker" traefik.http.routers.traefik.service: "api@internal" traefik.docker.network: traefik - traefik.enable: "true" + traefik.enable: "{{ traefik_dashboard | string }}" volumes: - /var/run/docker.sock:/var/run/docker.sock