Skip to content

Commit

Permalink
Increased Fedora test version to 41
Browse files Browse the repository at this point in the history
Keeping up with the latest release.
  • Loading branch information
freemanjp committed Nov 20, 2024
1 parent d6e14d3 commit 8b89126
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Requirements

* Fedora

* 34
* 41

* SUSE Family

Expand Down
2 changes: 1 addition & 1 deletion meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ galaxy_info:
- '9'
- name: Fedora
versions:
- '34'
- '41'
- name: opensuse
versions:
- 'all'
Expand Down
7 changes: 7 additions & 0 deletions molecule/fedora/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion molecule/fedora/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ role_name_check: 2

platforms:
- name: ansible-role-maven-fedora
image: fedora:34
image: fedora:41

provisioner:
name: ansible
Expand Down
4 changes: 2 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8b89126

Please sign in to comment.