powerbroker (pbrun) solutions?

I saw some people talk about implementing a pbrun solutions into Ansible but last I see is people just running shell and command tasks to do all the work. We access a wide range of systems and only a small portion of them use pbrun at the moment. Did anyone ever find a good way to use pbrun with the majority of the ansible task types. I saw someone say they had a wrapper. I do not have the time to go over ansible, sudo, and pbrun to find a solution so if anyone else has one I would appreciate some guidance.

Thank you,

it could be implemented the same way su got added as a sudo alternative.

In general it looks like pbrun works similar to sudo but with a few different arguments. Is there a place I could read about how Ansible uses sudo? Maybe I can just write a wrapper script that translates ansible’s sudo commands into pbrun commands.

No real place to read about the “how” other than the code.

it has been suggested the arguments sudo usually uses be made more configurable in which case this might be easy to drop in as a replacement.