Skip to content

Commit fca6f71

Browse files
committed
Validate templated Caddyfile before deployment
We can't do this in general, but at least can catch any issues before Ansible deploys the expanded configuration.
1 parent 5a30f47 commit fca6f71

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

matplotlib.org.yml

+1
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@
163163
ansible.builtin.template:
164164
src: Caddyfile.j2
165165
dest: /etc/caddy/Caddyfile
166+
validate: "caddy validate --adapter caddyfile --config %s"
166167
notify: Reload Caddy
167168

168169
- name: Configure Caddy TLS certificate directory

0 commit comments

Comments
 (0)