Why Ansible yum Module does not update kernel even after Success?

Solution Verified - Updated -

Issue

  • While updating VM to the latest kernel by using yum module like below:

    - name: Do the latest Security Patching
     yum:
       security: yes
       state: latest
     notify:
       - Reboot the host and wait for it to restart
    

    It does not update the Kernel package to latest.

  • Kernel package is not updating even after a successful playbook run.

Environment

  • Red Hat Ansible Automation Platform 2.3

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