Hi all,
Sorry in advance if this issue have already been solved (i’ve been looking for answers for few days already) or if i am not asking this in the right place.
I’m trying to install Ansible Tower on a Ubuntu 16.04 VM (with VMWare). The host computer works with Windows 7 Pro. For the installation, i’m following the “readme” file instructions of the foldre i downloaded on ansible website.
When i execute setup.sh, i get the following error at some point :
`
TASK [packages_ubuntu : install apt repository keys] ***************************
failed: [localhost] (item={u’url’: u’https://www.postgresql.org/media/keys/ACCC4CF8.asc’}) => {“changed”: false, “item”: {“url”: “https://www.postgresql.org/media/keys/ACCC4CF8.asc”}, “msg”: “Failed to connect to www.postgresql.org at port 443: [Errno 101] Network is unreachable”}
failed: [localhost] (item={u’id’: u’0x6B73A36E6026DFCA’, u’keyserver’: u’hkps.pool.sks-keyservers.net’}) => {“changed”: false, “cmd”: “/usr/bin/apt-key adv --keyserver hkps.pool.sks-keyservers.net --recv 6B73A36E6026DFCA”, “item”: {“id”: “0x6B73A36E6026DFCA”, “keyserver”: “hkps.pool.sks-keyservers.net”}, “msg”: “Error fetching key 6B73A36E6026DFCA from keyserver: hkps.pool.sks-keyservers.net”, “rc”: 2, “stderr”: “gpg: requesting key 6026DFCA from hkp server hkps.pool.sks-keyservers.net\ngpg: keyserver timed out\ngpg: keyserver receive failed: keyserver error\n”, “stderr_lines”: [“gpg: requesting key 6026DFCA from hkp server hkps.pool.sks-keyservers.net”, “gpg: keyserver timed out”, “gpg: keyserver receive failed: keyserver error”], “stdout”: “Executing: /tmp/tmp.ZNclEqfh7B/gpg.1.sh --keyserver\nhkps.pool.sks-keyservers.net\n–recv\n6B73A36E6026DFCA\n”, “stdout_lines”: [“Executing: /tmp/tmp.ZNclEqfh7B/gpg.1.sh --keyserver”, “hkps.pool.sks-keyservers.net”, “–recv”, “6B73A36E6026DFCA”]}
failed: [localhost] (item={u’url’: u’https://releases.ansible.com/keys/442667A9.asc’}) => {“changed”: false, “item”: {“url”: “https://releases.ansible.com/keys/442667A9.asc”}, “msg”: “Failed to connect to releases.ansible.com at port 443: [Errno 101] Network is unreachable”}
`
I think that may be a proxy issue, as the proxy of the place i work is quite restrictive. I already tried
export http_proxy="..."
but it didn’t solve the problem.
When i test network access with a get_url, it works :
camille@ubuntu: ~$ ansible -m get_url -a "dest=~/Desktop url=http://www.google.com" localhost localhost | SUCCESS => { "changed": true, "checksum_dest": "20902e9940341e5b1b52f1942246ea2e8777ddbb", "checksum_src": "bc4f86bc86d62356013c6f3d79e2e60a615b0c25", "dest": "/home/camille/Desktop/index.html", "gid": 1000, "group": "camille", "md5sum": "75bd8c115da6968aa17812ab6dbc4c4f", "mode": "0664", "msg": "OK (unknown bytes)", "owner": "camille", "size": 10948, "src": "/tmp/tmpWgOcrl", "state": "file", "status_code": 200, "uid": 1000, "url": "http://www.google.com" }
Do someone have any clue about this ?