Is it possible to capture an exit code for an Ansible role or playbook (not each individual task) and branch depending on the exit code?
We have an application that needs to create a specific flag (success/failure) for each Ansible ROLE, not task. One exit code per role.