So I’m trying to create an ansible task that will backup a Stardog DB that I can either run separately or with other scripts. If I run what looks like the same exact thing in Bruno, it runs for about 7 minutes then I get an appropriate response saying it was backed up and how long it took. However if I use the below ansible script, it does successfully kick off the backup, but the response message never returns and I just error with the timeout that I have set (right now 600 seconds). Is there any chance it can be an issue with ansible or the way I’m configuring it? I’m on Ansible Core 2.18.6, Stardog 11.0.1 and currently doing this through an Ubuntu WSL on Windows 11. Also FYI it works fine against our Stardog DB that is standalone (not a cluster, but that backup only takes 1-2 seconds, not 7-8 minutes).
---
- name: Stardog DB Backup
hosts: localhost
connection: local
gather_facts: yes
tasks:
- name: Backup DB
run_once: true
ansible.builtin.uri:
url: https://<One_cluster_node_URL>:5821/admin/databases/<database>/backup
method: PUT
user: <admin_user>
password: <password>
force_basic_auth: true
status_code: [200, 202]
timeout: 600
headers:
connection: keep-alive
Content-Type: application/json
register: displayfile