Ansible Tower installation error

Hi,

I am installing a fresh ansible tower on my localhost on ubuntu 16.04LTS. This is my first experience with the tower.

When I run the setup.sh script, I get this error,

It is on this task,

< TASK [packages_ubuntu : install apt repository keys] >

Below is the error,

failed: [localhost] (item={u’url’: u’https://www.postgresql.org/media/keys/ACCC4CF8.asc’}) => {“failed”: true, “item”: {“url”: “https://www.postgresql.org/media/keys/ACCC4CF8.asc”}, “msg”: “Failed to download key at https://www.postgresql.org/media/keys/ACCC4CF8.asc: An unknown error occurred: ~/.netrc file owner (luvpreet) does not match current user (root) (/home/luvpreet/.netrc, line 2)”}

failed: [localhost] (item={u’url’: u’https://www.rabbitmq.com/rabbitmq-release-signing-key.asc’}) => {“failed”: true, “item”: {“url”: “https://www.rabbitmq.com/rabbitmq-release-signing-key.asc”}, “msg”: “Failed to download key at https://www.rabbitmq.com/rabbitmq-release-signing-key.asc: An unknown error occurred: ~/.netrc file owner (luvpreet) does not match current user (root) (/home/luvpreet/.netrc, line 2)”}

failed: [localhost] (item={u’url’: u’https://releases.ansible.com/keys/442667A9.asc’}) => {“failed”: true, “item”: {“url”: “https://releases.ansible.com/keys/442667A9.asc”}, “msg”: “Failed to download key at https://releases.ansible.com/keys/442667A9.asc: An unknown error occurred: ~/.netrc file owner (luvpreet) does not match current user (root) (/home/luvpreet/.netrc, line 2)”}

failed: [localhost] (item={u’url’: u’http://nginx.org/keys/nginx_signing.key’}) => {“failed”: true, “item”: {“url”: “http://nginx.org/keys/nginx_signing.key”}, “msg”: “Failed to download key at http://nginx.org/keys/nginx_signing.key: An unknown error occurred: ~/.netrc file owner (luvpreet) does not match current user (root) (/home/luvpreet/.netrc, line 2)”}

What is the possible reason for this and the solution ?

For tower questions and support please utilize https://access.redhat.com/products/ansible-tower-red-hat

This mailing list is for the open source ansible project.