Fix: Add CentOS 9 support and cleanup prepare.yml 81/73981/3
authorAnil Belur <abelur@linuxfoundation.org>
Fri, 12 Dec 2025 13:07:23 +0000 (23:07 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Fri, 12 Dec 2025 23:03:19 +0000 (09:03 +1000)
commit73ef363601f318310fa78834ce4bc4c06f98af03
tree615b4c2e73c1172cd640520b20db266753b1b56c
parenta51a3fc9acd9a8bc78af6286d47f08a3a58988aa
Fix: Add CentOS 9 support and cleanup prepare.yml

- Add CentOS-9.yaml vars file for CentOS Stream 9 support
- Simplify prepare.yml by removing duplicate package installations
- Update package installation logic in tasks/main.yml
- Use ansible_facts instead of deprecated variables

This enables the role to work with CentOS Stream 9 and follows
the same patterns used in other updated roles.

Change-Id: Ib871a115a4b2cad7635b0fcb3b05d6ad3300bcfb
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
molecule/default/prepare.yml
tasks/main.yml
vars/CentOS-9.yaml [moved from vars/CentOS Stream-9.yaml with 96% similarity]