Hello.
I have added a feature to my fork that allows a task file to be shared by a block and a rescue but to run the tasks in reverse order in rescue to achieve an undo.
I did this because it was a great exercise to study Ansible and the Python code that makes it work, and maybe the feature is useful.
The feature modifies include_tasks to allow optional parameter “reverse: True”
More details and examples can be found a Gist I wrote at https://gist.github.com/TimEisler/c4c5e49d7c05a60c92527a60866c3abd to describe it.
Is this something that is of interest to you, maintainers?
Thanks
Tim Eisler