I have created a role named
cleanup which is my final role in playbook (which handles some cleanups after running all otherroles)
here is a simplified version of my playbook
- hosts: myhost roles: - common - postgresql - rabbitmq - web - cleanup
the problem is if playbook fails ansible doesn't run clean role, how can I mark that specific role as important, so ansible would run it even all other roles in playbook has failed?