Hubba's Blog

Notes from a Linux/Unix Engineer

Bug Alert - ANSIBLE

Posted on Fri, Aug 29, 2025 at 17:40 by Hubertus A. Haniel

Just came across something weird modifying some of my roles so I can play with RHEL10:

    when: ansible_distribution == 'RedHat' and ansible_distribution_major_version >= '9'
  

The above statement does not seem to be including RHEL10 in fact if I test it the other way with "<=9" it will actually include 10 - I am not sure why but I think I have a bug.

This is with Ansible 2.16.14 and python 3.12 running from a RHEL8 machine targeting a RHEL10

Pretty weird HUH?

Edited on: Fri, Aug 29, 2025 17:47

Posted in Automation (RSS)