I’ve got some playbooks that install updates to some servers based on operating system family like so:
-
include_tasks: update-RedHat.yml
when: (ansible_os_family == ‘RedHat’) -
include_tasks: update-Debian.yml
when: (ansible_os_family == ‘Debian’)
We recently changed a bunch of servers to Alma Linux and this conditional is being skipped due to Alma Linux not being flagged as being in that family.
I’m running AWX 17.1.0 with Ansible 2.9.18 on an Ubuntu 20.04 server. I found some stuff that suggests perhaps this version of ansible won’t recognise the family, but I’m pretty well stuck on how best to upgrade the ansible version. All the information I can find online just produces error rabbit holes and I’d rather avoid major change today if possible.
Is there another way I can get those servers included that anyone knows of?