AWX Ansible - Can't access repository Git and Bitbucket

Viewed 25

I have configured and successfully used until some days ago a project in AWX, synchronizing it with a Bitbukcet repository. Now, when I am trying to sync the Project with the repository, I get this error:

TASK [update project using git] ************************************************
fatal: [localhost]: FAILED! => {"changed": false, "cmd": ["/usr/bin/git", "fetch", "--tags", "origin"], "msg": "Failed to download remote objects and refs:  fatal: unable to access 'https://bitbucket.org/user/reponame.git/': Could not resolve host: bitbucket.org\n"}

I also tried creating a new repository on Github, but during the sync process I get this error:

TASK [update project using git] ************************************************
fatal: [localhost]: FAILED! => {"changed": false, "cmd": "/usr/bin/git ls-remote https://github.com/ansible/ansible-tower-samples -h refs/heads/HEAD", "msg": "fatal: unable to access 'https://github.com/ansible/ansible-tower-samples/': Could not resolve host: github.com", "rc": 128, "stderr": "fatal: unable to access 'https://github.com/ansible/ansible-tower-samples/': Could not resolve host: github.com\n", "stderr_lines": ["fatal: unable to access 'https://github.com/ansible/ansible-tower-samples/': Could not resolve host: github.com"], "stdout": "", "stdout_lines": []}

The machine where AWX is installed is able to perform a ping to those hostname and to perform a git clone. How can I solve this problem?

0 Answers
Related