Why Yum Module With "state:latest" & "update_only:yes" Shows Contradicting Output ?

Solution Verified - Updated -

Issue

When the update_only parameter is set to yes with the yum module and state has set to latest. Shows the below output results while it does update the package to the latest version.

"All packages providing "<package_name>" are up to date", 

Environment

Ansible 2.9.x
RHEL 7

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