diff options
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 |
