Ansible yum module does not recognize available package update on an unregistered RHEL 7 system

Solution Verified - Updated -

Issue

  • package module does not update package on every system
  • The Ansible yum module does not recognize an available package update on an unregistered RHEL 7 system, albeit it is possible to update the package on the host via command line using:

    # yum update <packageName>
    

Environment

  • Red Hat Enterprise Linux (RHEL) 7
  • Ansible
  • Ansible: yum module
  • subscription-manager

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