08-17-2022 08:17 AM
Has anyone writting or seen any Ansible playbooks that can do an Infoblox database restore? I have a use case where I need to restore a database into my test environment daily and want to automate it using Ansible. Is something like that even possible? Any help or direction would be greatly apprreciated
08-18-2022 03:18 PM - edited 08-18-2022 03:18 PM
There is no direct support for this with Infoblox Ansible module. You can do a Grid Restore using Infoblox WAPI, see the Grid database backup and restore section in this guide: https://www.infoblox.com/wp-content/uploads/infoblox-deployment-infoblox-rest-api.pdf.
You could try running the restore WAPI call via the Ansible URI module to achieve the automation you are looking for: https://docs.ansible.com/ansible/latest/collections/ansible/builtin/uri_module.html.