diff options
| author | Kumar Damani <me@kumardamani.net> | 2025-06-30 20:56:42 +0000 |
|---|---|---|
| committer | Kumar Damani <me@kumardamani.net> | 2025-06-30 20:56:42 +0000 |
| commit | 7e603bcc92c7ddc19dbfb0c46434bc6847ad3781 (patch) | |
| tree | b7be5876cf1ada2b0a33e280008bc32a7845f559 /ansible | |
| parent | ae957ef0ea41eb7daa56df598ae6d63747b33047 (diff) | |
fix caddy add role
Diffstat (limited to 'ansible')
| -rw-r--r-- | ansible/roles/caddy_add/tasks/main.yaml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ansible/roles/caddy_add/tasks/main.yaml b/ansible/roles/caddy_add/tasks/main.yaml index 80dffaf..4dcbd8a 100644 --- a/ansible/roles/caddy_add/tasks/main.yaml +++ b/ansible/roles/caddy_add/tasks/main.yaml @@ -11,8 +11,9 @@ - name: 'Call the Caddy API to add our new host' ansible.builtin.uri: - url: 'http://rproxy:2019/config/apps/http/servers/serv0/routes/0' + url: 'http://rproxy:2019/config/apps/http/servers/srv0/routes/0' method: 'PUT' + follow_redirects: true body_format: 'json' status_code: 200 body: | @@ -45,7 +46,6 @@ } - name: 'Get a copy of the new Caddy config' - delegate_to: 'localhost' ansible.builtin.uri: url: 'http://rproxy:2019/config' return_content: true |
