Closed richm closed 1 year ago
Because the nbde_client role throws the error in a block/always, the error must be caught with rescue and rethrown. See https://richm.github.io/how-to-catch-and-reraise-errors-in-ansible
The sensitive field might be in a deeply nested data structure, so iterate through the data structure.
The re-raised error is not in ansible_failed_result it is in ansible_failed_result.msg
ansible_failed_result
ansible_failed_result.msg
Because the nbde_client role throws the error in a block/always, the error must be caught with rescue and rethrown. See https://richm.github.io/how-to-catch-and-reraise-errors-in-ansible
The sensitive field might be in a deeply nested data structure, so iterate through the data structure.
The re-raised error is not in
ansible_failed_result
it is inansible_failed_result.msg