- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Use Ansible to do a database restore
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Re: Use Ansible to do a database restore
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.