LDAP login reuse as credential for vcenter vmware

Hi, I have an awx installation with autentication LDAP AD.
I have a playbook which connect to vcenter vmware, every user must use the own credentials for access to vcenter, so I can track the user activity.
My template use the survey for ask user, password for access to vcenter and other parameters for create vm with playbook.

Can I reuse the same credentials of awx for access to vcenter without ask it in suvery? Are there some variables?

I have already a vcenter credentials for sync inventory, but I don’t want use that, because I want track user activity and it has read only role.

Thank you for help

Enzo

Absolutely Enzo! The new generic Credential Type feature solves this problem. The vmware vcenter credential type can be used by Job Templates, not just inventory syncs. The following env vars will be injected into the playbook env: VMWARE_USER, VMWARE_PASSWORD, VMWARE_HOST, and VMWARE_VALIDATE_CERTS (optional, will be a filename). You can explicitly consume these in Ansible using {{ lookup(‘env’, ‘VMWARE_USER’) }}. We try to name the variables so that they will be implicitly consumed by the respective cloud libraries.