Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increased Fedora test version to 41 #233

Merged
merged 1 commit into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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