How do I read/ use Ansible tower credentials (machine/ network/ Vault/ Source Control)?

Hi Ansible Experts,
This question is more relevant to Ansible Tower.
Can someone help to read the Ansible tower credentials in Playbook?
We have created machine type credential called sampleCredential and password for it. Now how do I use them in the playbook

`

The question should be posted in AWX group or instead should be posted for your Red-hat support.

Coming to your question, you don’t need to specifically define the username and password in the playbook. When you create a template, you choose the playbook, credentials (already created ones under credentials section of Ansible Tower) and other attributes for that particular template. Not sure what you are trying to achieve by trying to print the credentials though.

Hi Ankit,
Thanks for your reply. My question is whether can we use Ansible tower credentials in the playbook or not? I have experienced in using the tower credentials in the job template.
Is there anyway to use the credentials inside playbook to store the username/ password as part of the play execution?
Regards
Saravanan