Hi,
I’m pretty much a newb to AWX… I am doing an Ansible-Tower PoC for my company, but I am somewhat limited as to what I can do in my companies network.
So I have setup AWX and Gilab on my home lab so that I can do more with ansible playbooks like configure cisco switches primarily.
My problem is I have a repo with all my ansible playbooks in it. I have this in my home gitlab. I have setup everything exactly like I have it working on ansible-tower for my source control but it fails:
`
PLAY [Update source tree if necessary] *****************************************
TASK [update project using git] ************************************************
fatal: [localhost]: FAILED! => {“changed”: false, “cmd”: “/usr/bin/git clone --origin origin ‘’ /var/lib/awx/projects/_8__ansible”, “msg”: “Cloning into ‘/var/lib/awx/projects/_8__ansible’…\nssh: Could not resolve hostname gitlab.mydomain.local: Name or service not known\r\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.”, “rc”: 128, “stderr”: “Cloning into ‘/var/lib/awx/projects/_8__ansible’…\nssh: Could not resolve hostname gitlab.mydomain.local: Name or service not known\r\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n”, “stderr_lines”: [“Cloning into ‘/var/lib/awx/projects/_8__ansible’…”, “ssh: Could not resolve hostname gitlab.mydomain.local: Name or service not known”, “fatal: Could not read from remote repository.”, “”, “Please make sure you have the correct access rights”, “and the repository exists.”], “stdout”: “”, “stdout_lines”: }
`
so… from my awx host gitlab totally resolves. from my awx host I have done git clone git@gitlab… and it totally works. Same id_rsa I am using to clone as is pasted into my source control credentials as am using to clone from gitlab to the awx - I am using the same key to ssh to the gitlab from awx host and it works fine… I just installed awx yesterday and pulled the latest devel branch to install, which maybe isn’t the best, but I was just following a blog and this is PoC type stuff I am doing. I am stuck. Google isn’t returning much other than make sure I have rights to the repo, its confusing that it says it can’t resolve hostname and it would appear that might be a red herring or at least something fishy. Any futher ideas on what I can do to try and track down the problem would be much appreciated. Thanks Bill (the code section above seems to have broken my line returns here, so I hope this looks correct)