Help: How to use ssh-add and SSH agent forwarding?

Context:

I am building a playbook that will clone a private repository from github, so I need to enable ssh-add and SSH agent forwading

With native Ansible I can do it with

eval “$(ssh-agent -s)”
ssh-add ~/.ssh/id_rsa
ansible-playbook …

My question is with AWX, how can I perform these two steps before running the playbook?

eval “$(ssh-agent -s)”
ssh-add ~/.ssh/id_rsa

Hello,

You may find this documentation helpful: https://docs.ansible.com/automation-controller/latest/html/userguide/credentials.html#source-control
You can set up a source control credential and then attach it to your project.

Please let us know if this helps!