All,
I am looking a way to access credentials that are setup in Ansible Tower credentials.
The scenario I am testing is to clone a private git repo. the way I found to pass the username and password are as follows.
---
- hosts: all
gather_facts: no
become: yes
tasks:
- name: install git package
apt:
name: git
- name: Get updated files from git repository
git:
dest: /tmp
Now in this, I want to use the githubuser and githubpassword to be passed from the credentials i have setup under the Credentials in Ansible Tower or a way to pass the credentials securely to my playbook?
Thanks,
Jayant