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