Why Ansible Tower Installer is Failing With "repoquery error: Error accessing file for config file?"

Solution Verified - Updated -

Issue

Ansible Tower installer fails with yum module repoquery error at package installation step.

TASK [packages_el : Pre-install Erlang] ********************************************************************************************************************************
fatal: [xx.xx.xx.xx]: FAILED! => {"changed": false, "msg": "Error from repoquery: ['/bin/repoquery', '--show-duplicates', '--plugins', '--quiet', '-c', None, '--disablerepo', '', '--enablerepo', '', '--qf', '%{epoch}:%{name}-%{version}-%{release}.%{arch}', 'erlang-20.3.8.2']: Error accessing file for config file:///root/ansible-tower-setup-bundle-3.3.3-1.el7/--disablerepo\nError accessing file for config file:///root/ansible-tower-setup-bundle-3.3.3-1.el7/--disablerepo\n"}

or

TASK [packages_el : Install the Tower RPM.] *************************************************************************************************************************************
fatal: [xx.xx.xx.xx]: FAILED! => {"changed": false, "msg": "Error from repoquery: ['/bin/repoquery', '--show-duplicates', '--plugins', '--quiet', '-c', None, '--disablerepo', '', '--enablerepo', 'ansible-tower,ansible-tower-dependencies', '--qf', '%{epoch}:%{name}-%{version}-%{release}.%{arch}', 'ansible-tower == 3.3.3']: Error accessing file for config file:///home/devops/--disablerepo\nError accessing file for config file:///home/devops/--disablerepo\n"}

Environment

Ansible Tower
Ansible Engine 2.7.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content