Credential Module - Create Tower Credential with a Cyberark AIM Lookup as the password

Hello!

I’m looking into creating credentials in Tower using the Ansible tower_credential module. I can’t find any examples of this module where the password is a lookup/query vs. hard-coding a password.

Presently, I can go into Tower and manually create credentials where the password uses a “Cyberark AIM Central Credential Provider Lookup”, and enter in my object query on the metadata page (for example, Safe=mysafe;Object=mysecret). This does not work for my long term, as our automation is designed to create a new credential when a new team is onboarded to Tower.

Is there any way I can do this with the Ansible credential module? Here is the source code as reference. https://github.com/ansible/awx/blob/devel/awx_collection/plugins/modules/credential.py

Thanks,
Spence

Disregard! Found my answer with this module: https://github.com/ansible/awx/blob/devel/awx_collection/plugins/modules/credential_input_source.py

Thanks,
Spence