Way to recover latest backup?

Hello all,

So… If I needed to restore those ‘backup=true’ files for some conf on a few hundred hosts.
Do we have something in place for this?

Lets say we run:

the playbook that causes pain

You can use a simple shell: to find all backups and get latest, register it and use that var in subsequent task to move it back into place.

Is this still true, because it really puts a damper on what I had hoped the solution would be which is something like patch, where you can just -R to reverse the patch file application. If that’s true I may switch from using the copy to actually apply changes and instead use the copy to get a file to the remote host and then apply the changes with patch.