Reversible include_tasks - A feature for Ansible

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

Hi Tim,

it might be a good idea to create an issue in
https://github.com/ansible/proposals/ for this. That might also give
your proposal a bit more visibility.

Best,
Felix

Done. Reversible include_tasks · Issue #201 · ansible/proposals (github.com)

Thanks
Tim