Implement a rollback feature when creating Cloud resources

jdlmrh
Thu, 24 Jul 2025 12:05:25 +0000
Project Discussions

I use Ansible to create and configure many Cloud resources (VM, VPC, SecurityGroups, Volumes…). Compared to Terraform, Ansible does not offer an easy way to delete the created resources. So I started to create a “callback plugin” that generates a Playbook that can destroy the resources created by another Playbook. This plugin is available on GitHub and on Galaxy sites (see links below). But I’m wondering : couldn’t it be possible to include this “rollback” capability directly in the modules like “amazon.aws." or "google.coud.”, etc…

GitHub link : https://github.com/majeinfo/ansible_rollback_plugin
Galaxy link : https://galaxy.ansible.com/ui/repo/published/majeinfo/resource_cleaner/

5 posts - 2 participants