Remote execution through Ansible failing on Red Hat Satellite 6

Solution Verified - Updated -

Issue

  • Remote execution through SSH working fine.
  • Remote execution through Ansible failing with below error:
ERROR! Unexpected Exception, this is probably a bug: [Errno 13] Permission denied: '/usr/lib/python2.7/site-packages/idna-2.8.dist-info/METADATA'
the full traceback was:

Traceback (most recent call last):
  File "/usr/bin/ansible-playbook", line 97, in <module>
    mycli = getattr(__import__("ansible.cli.%s" % sub, fromlist=[myclass]), myclass)
  File "/usr/lib/python2.7/site-packages/ansible/cli/__init__.py", line 38, in <module>
    from ansible.inventory.manager import InventoryManager
  File "/usr/lib/python2.7/site-packages/ansible/inventory/manager.py", line 33, in <module>
    from ansible.plugins.loader import inventory_loader
.
.
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1421, in get_metadata
    return self._get(self._fn(self.egg_info,name))
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1536, in _get
    stream = open(path, 'rb')
IOError: [Errno 13] Permission denied: '/usr/lib/python2.7/site-packages/idna-2.8.dist-info/METADATA'

Environment

  • Red Hat Satellite 6.5

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