I want to maintain a state file to keep track of whether a role ran or not. Ansible's retry file does not make sense as multiple roles that I have in the playbook are calling bunch of different APIs.
In a multi DC setup, a given playbook is iterated. If something fails and playbook exits out, using Ansible's default retry file didnt resumed where it should have resumed from.
I wanted to know if the meta/main.yml can somehow read a dynamic state file that keeps track of DC and role...maybe we can read and determine if the given role can execute or not. We can definetely put a bunch of when conditionals for every tasks in the main.yml of the role. Is there a better way?