Satellite ansible collections playbook fails with error module redhat.satellite.content_view not found

Solution Verified - Updated -

Issue

  • Satellite ansible collections playbook execution fails with the below errors in spite of following Managing Satellite with Ansible Collections guide.

    [root@satellite ~]# ansible-playbook test.yml
    ERROR! couldn't resolve module/action 'redhat.satellite.content_view'. This often indicates a misspelling, missing collection, or incorrect module path.
    The error appears to be in '/root/test.yml': line 4, column 5, but may
    be elsewhere in the file depending on the exact syntax problem.
    The offending line appears to be:
    tasks:
    - name: "Create a content view"
    ^ here
    
    [root@satellite ~]# ansible-doc  redhat.satellite.content_view
    [WARNING]: module redhat.satellite.content_view not found in: /root/.ansible/plugins/modules:/usr/share/ansible/plugins/modules:/usr/lib/python2.7/site-
    packages/ansible/modules
    

Environment

  • Red Hat Satellite 6

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