Skip to content

Commit 00fc1f3

Browse files
committed
Configure TLS certs before Caddy
Otherwise, the validation step fails on a completely new system since the files are missing.
1 parent e57c891 commit 00fc1f3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

matplotlib.org.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -161,13 +161,6 @@
161161
- name: Caddy setup
162162
tags: caddy
163163
block:
164-
- name: Configure Caddy
165-
ansible.builtin.template:
166-
src: Caddyfile.j2
167-
dest: /etc/caddy/Caddyfile
168-
validate: "caddy validate --adapter caddyfile --config %s"
169-
notify: Reload Caddy
170-
171164
- name: Configure Caddy TLS certificate directory
172165
ansible.builtin.file:
173166
path: /etc/caddy/tls
@@ -194,6 +187,13 @@
194187
notify:
195188
- Reload Caddy
196189

190+
- name: Configure Caddy
191+
ansible.builtin.template:
192+
src: Caddyfile.j2
193+
dest: /etc/caddy/Caddyfile
194+
validate: "caddy validate --adapter caddyfile --config %s"
195+
notify: Reload Caddy
196+
197197
- name: Enable Caddy service
198198
ansible.builtin.systemd:
199199
name: caddy.service

0 commit comments

Comments
 (0)