From 63c5e1f4eb0982ed39121e7b62c3ec4e5f0c3809 Mon Sep 17 00:00:00 2001 From: Lennard Brinkhaus Date: Tue, 19 Sep 2023 20:04:00 +0200 Subject: [PATCH] feat: add file provider --- tasks/main.yml | 2 +- templates/traefik.yaml.j2 | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index c6f54a4..64e336a 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -24,7 +24,7 @@ - name: Create letsencrypt folder file: - path: /etc/traefik + path: /etc/traefik/config state: directory mode: 0775 recurse: yes diff --git a/templates/traefik.yaml.j2 b/templates/traefik.yaml.j2 index 538a0f4..1328e1b 100644 --- a/templates/traefik.yaml.j2 +++ b/templates/traefik.yaml.j2 @@ -15,7 +15,9 @@ providers: docker: endpoint: "unix:///var/run/docker.sock" network: systemd-traefik - + file: + directory: /etc/traefik/config + watch: true # API and dashboard configuration api: