From 8b89126a294f5e60f96ee56fab7263d40d4d7fe5 Mon Sep 17 00:00:00 2001 From: John Freeman Date: Wed, 20 Nov 2024 21:50:07 +0000 Subject: [PATCH] Increased Fedora test version to 41 Keeping up with the latest release. --- README.md | 2 +- meta/main.yml | 2 +- molecule/fedora/converge.yml | 7 +++++++ molecule/fedora/molecule.yml | 2 +- tasks/main.yml | 4 ++-- 5 files changed, 12 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index bfc1d29..f1836c1 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ Requirements * Fedora - * 34 + * 41 * SUSE Family diff --git a/meta/main.yml b/meta/main.yml index 8191af3..3a75bf9 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -11,7 +11,7 @@ galaxy_info: - '9' - name: Fedora versions: - - '34' + - '41' - name: opensuse versions: - 'all' diff --git a/molecule/fedora/converge.yml b/molecule/fedora/converge.yml index d4576a6..d2dc55d 100644 --- a/molecule/fedora/converge.yml +++ b/molecule/fedora/converge.yml @@ -4,6 +4,13 @@ hosts: all pre_tasks: + # Workaround for Fedora 41 https://github.com/ansible/ansible/issues/84206 + - name: Install python3-libdnf5 + become: true + ansible.builtin.command: dnf install -y python3-libdnf5 + when: ansible_facts.pkg_mgr == 'dnf5' + changed_when: false + - name: Install jdk 8 become: true ansible.builtin.package: diff --git a/molecule/fedora/molecule.yml b/molecule/fedora/molecule.yml index df683ff..50b8326 100644 --- a/molecule/fedora/molecule.yml +++ b/molecule/fedora/molecule.yml @@ -9,7 +9,7 @@ role_name_check: 2 platforms: - name: ansible-role-maven-fedora - image: fedora:34 + image: fedora:41 provisioner: name: ansible diff --git a/tasks/main.yml b/tasks/main.yml index c0d99a2..547dceb 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -16,7 +16,7 @@ ansible.builtin.package: name: which state: present - when: ansible_pkg_mgr in ('yum', 'dnf', 'zypper') + when: ansible_pkg_mgr in ('yum', 'dnf', 'dnf5', 'zypper') - name: Create download directory ansible.builtin.file: @@ -53,7 +53,7 @@ - unzip - gzip state: present - when: ansible_pkg_mgr in ('dnf', 'zypper') + when: ansible_pkg_mgr in ('dnf', 'dnf5', 'zypper') - name: Install Maven become: true