diff --git a/defaults/main.yml b/defaults/main.yml index c404f7b..3f5aad1 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -4,7 +4,6 @@ traefik_virtual_host: localhost traefik: expose_internally: True expose_externally: False - enable_acme: False use_acme_staging: True dns_challenge_provider: False # NOT WORKING YET! diff --git a/tasks/main.yml b/tasks/main.yml index d4be410..4a21e83 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -33,6 +33,7 @@ force: no dest: /home/{{ docker_user }}/traefik/acme.json mode: 0600 + state: touch tags: config - name: "docker-compose: Teardown existing Traefik service (only removes the containers)" diff --git a/templates/traefik.toml.j2 b/templates/traefik.toml.j2 index 11cee39..37fa613 100644 --- a/templates/traefik.toml.j2 +++ b/templates/traefik.toml.j2 @@ -20,7 +20,6 @@ watch = true endpoint = "unix:///var/run/docker.sock" exposedByDefault = false -{% if traefik.enable_acme %} [certificatesResolvers.defaultresolver.acme] {% if traefik.use_acme_staging %} caServer = "https://acme-staging-v02.api.letsencrypt.org/directory" @@ -29,8 +28,6 @@ watch = true storage = "acme.json" [certificatesResolvers.defaultresolver.acme.httpChallenge] entryPoint = "web" -{% endif %} - {% if traefik.extra_mapping | default(False) %} ### NOT WORKING YET!