From b206824a38a8a11bb5296bb7cefa7dfc5801f7f3 Mon Sep 17 00:00:00 2001 From: Alik Kurdyukov Date: Fri, 13 Jun 2025 23:18:54 +0400 Subject: [PATCH] Fix for Rocky 9 --- molecule/default/molecule.yml | 5 +++-- tasks/noauto_install_pip.yml | 5 ++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/molecule/default/molecule.yml b/molecule/default/molecule.yml index 80087a7..0333e5d 100644 --- a/molecule/default/molecule.yml +++ b/molecule/default/molecule.yml @@ -14,8 +14,9 @@ platforms: image: debian:bookworm - name: ubuntu-latest image: ubuntu:latest - - name: rockylinux-8 - image: rockylinux/rockylinux:8 + # TODO: setup ansible<10 for this + # - name: rockylinux-8 + # image: rockylinux/rockylinux:8 - name: rockylinux-9 image: rockylinux/rockylinux:9 provisioner: diff --git a/tasks/noauto_install_pip.yml b/tasks/noauto_install_pip.yml index 3a1fcd2..0482ee7 100644 --- a/tasks/noauto_install_pip.yml +++ b/tasks/noauto_install_pip.yml @@ -5,7 +5,10 @@ community.general.dnf_config_manager: name: crb state: enabled - when: ansible_os_family == 'RedHat' and ansible_distribution != 'Fedora' and ansible_distribution != 'Rocky' + when: + - ansible_os_family == 'RedHat' + - ansible_distribution != 'Fedora' + - ansible_distribution != 'Rocky' or ansible_distribution_major_version == "9" - name: Install build dependencies ansible.builtin.package: