use playbook to reload caddy
All checks were successful
Deploy Containers / Prepare (push) Successful in 51s

This commit is contained in:
2025-08-01 11:53:58 -04:00
parent 2758e3c3b2
commit 9f88af15bf
2 changed files with 3 additions and 1 deletions

View File

@@ -3,3 +3,6 @@
template:
src: roles/caddy/templates/Caddyfile.j2
dest: "{{ data_dir }}/caddy/Caddyfile"
- name: Reload Caddyfile
command: docker exec -w /etc/caddy caddy caddy reload

View File

@@ -50,7 +50,6 @@ def main():
print("Reloading Caddyfile..")
subprocess.run(construct_ansible_command(tag="caddyfile_deploy"), shell=True, stdout=subprocess.PIPE)
subprocess.run("docker exec -w /etc/caddy caddy caddy reload", shell=True)
success = True
deployed = 0