diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-06-18 23:43:27 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-06-18 23:43:27 +0200 |
| commit | 7f5231ad60117265402e27a24c2c4ef3dbff6fe9 (patch) | |
| tree | 981cfcebb30431e4504bbdb30556f32f7c516374 /roles/caddy | |
| parent | 6a0fd11c6bd782a42b0b90d2f2365859a7953bb7 (diff) | |
Add stopping proxy tasks to ensure only one proxy is running
Diffstat (limited to 'roles/caddy')
| -rw-r--r-- | roles/caddy/tasks/main.yml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/roles/caddy/tasks/main.yml b/roles/caddy/tasks/main.yml index 78d484fc..f057f2b6 100644 --- a/roles/caddy/tasks/main.yml +++ b/roles/caddy/tasks/main.yml @@ -1,4 +1,12 @@ --- +- name: "Stop and disable nginx" + become: true + ansible.builtin.systemd_service: + name: "nginx" + state: "stopped" + enabled: false + failed_when: false + - name: "Install caddy" become: true ansible.builtin.package: |
