Hello all,
I have a use case where I am making a SOAP call via a custom ansible module.
The call needs credentials to authenticate .
I wanted to know if there was a way to create Credential on AWX and then call them inside the playbook to pass on.
I’d really appreciate an example.
FYI tried to use various credential types and read their environment variable via look up inside playbook but none worked.
Probably I am doing something wrong.
Thanks for your help!
DR
You can create one or more custom credential types [1] and assign those to your job template. Credentials are stored securely within AWX and are passed into your job (ie playbook) either as extra_vars or in files, at your decision.
-JP
[1] https://docs.ansible.com/ansible-tower/latest/html/userguide/credential_types.html
Thanks JP for your response
I did create custom credentials earlier as also mentioned in my but I was not using them right, your response did make me look at it again...and fix a very stupid mistake
Thanks again
DR