Source Control Credential Not Getting Populated While Creating Project

1,103 views
Skip to first unread message

shirish kamalapurkar

unread,
Mar 28, 2023, 11:30:01 AM3/28/23
to AWX Project
Hello Experts,

I am new to Ansible AWX and have recently installed in my test environment. I am going through the documents and want to created small jobs and test it. I have created account in github and have uploaded my playbook. Also I have configured Credentials for Source Control Credentials for git in AWX and have also uploaded the github private token. While creating the Project, the Source Control Credential is not getting populated and hence not able to create one. Request you to please help me to fix this or provide some links with documentation.

Thanks in advance.

AWX Project

unread,
Mar 31, 2023, 1:37:28 PM3/31/23
to AWX Project

This credential doesn't support github private token, instead you should provide username/password or github SSH private key

Let us know if that is helpful

AWX Team

shirish kamalapurkar

unread,
Apr 1, 2023, 1:19:27 AM4/1/23
to awx-p...@googlegroups.com
Hello,

I tried using username and password, the one which I use for login into GitHub, but it's not working.

Getting this below error. 

fatal: unable to access 'https://github.com/Shirya420/POC/': Could not resolve host: github.com

This is strange issue. Internet is available on the server and no proxy configured. I am able to ping google.com , but unable to ping GitHub.




--
You received this message because you are subscribed to the Google Groups "AWX Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to awx-project...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/awx-project/ce2c168f-4aa6-4a49-bce7-74c77f081111n%40googlegroups.com.

Alexey Sazonov

unread,
Apr 4, 2023, 6:58:48 AM4/4/23
to AWX Project
Github don't support login/password away from website, use ssh key 

суббота, 1 апреля 2023 г. в 08:19:27 UTC+3, shirish.ka...@gmail.com:

AWX Project

unread,
Apr 7, 2023, 1:18:52 PM4/7/23
to AWX Project
Username/password should work with git checkouts but it sounds like there was an issue resolving hosts. We had heard there was issues with github servers in some locations last week. Are you still having this issue or has it been resolved?

-The AWX Team

BlackCat

unread,
Aug 4, 2023, 5:05:38 AM8/4/23
to AWX Project
Where can I set up username/password or ssh personal access code in the project?
I

On Saturday, April 8, 2023 at 1:18:52 AM UTC+8 AWX Project wrote:
Username/password should work with git checkouts but it sounds like there was an issue resolving hosts. We had heard there was issues with github servers in some locations last week. Are you still having this issue or has it been resolved?
I cannot pull the credential which I added.  "Source Control Credential" menu does not show the credentials at all.

Michael Kelly

unread,
Aug 7, 2023, 7:32:44 AM8/7/23
to awx-p...@googlegroups.com
In github, you can create a 'deploy key' for a repository.
This key will only be valid for that repository.
First, create a key pair.
In github, navigate to your repository's homepage and click on Settings.
Click on 'Deploy keys' and then click 'Add deploy key'.
Give it a name and paste the public key and save it.
In AWX, create a 'Source Control' credential type.
Give it a name and paste the private key into the box (and also the passphrase if you used one) and save it.
In your project definition, set the Source Code Credential to the credential you just created and save it.


Reply all
Reply to author
Forward
0 new messages