# unable to pull from gitlab

**URL:** <https://forum.ansible.com/t/unable-to-pull-from-gitlab/32892>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [May 8, 2020, 9:20pm UTC](https://forum.ansible.com/t/unable-to-pull-from-gitlab/32892 "2020-05-08T21:20:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![william.dossett](https://avatars.discourse-cdn.com/v4/letter/w/b782af/32.png) [@william.dossett](https://forum.ansible.com/u/william.dossett)\
**Post date:** [May 8, 2020, 9:20pm UTC](https://forum.ansible.com/t/unable-to-pull-from-gitlab/32892/1 "2020-05-08T21:20:21Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![william.dossett](https://avatars.discourse-cdn.com/v4/letter/w/b782af/32.png) [@william.dossett](https://forum.ansible.com/u/william.dossett)\
**Post date:** [May 8, 2020, 9:54pm UTC](https://forum.ansible.com/t/unable-to-pull-from-gitlab/32892/2 "2020-05-08T21:54:14Z")

</div>

further investigation … on running tcpdump on gitlab port 22 from the awx host, I get no hits at all when I refresh the project… so it seems that it isn’t resolving the host.

Does awx use something besides the normal resolv.conf resolver for host names??? I am truly stumped by this.

---

<div class="post-metadata">

**Author:** ![william.dossett](https://avatars.discourse-cdn.com/v4/letter/w/b782af/32.png) [@william.dossett](https://forum.ansible.com/u/william.dossett)\
**Post date:** [May 8, 2020, 10:01pm UTC](https://forum.ansible.com/t/unable-to-pull-from-gitlab/32892/3 "2020-05-08T22:01:48Z")

</div>

It works when I put the IP address of gitlab in, so moving forward once again, but why? I have two DNS servers on my home network, they resolve everything fine… could it be that I am using a .local domain name? I did have a problem for a while on my linux mint diesktop where it didn’t seem to handle .local…
