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

Support the dnf5 package manager #66

Merged
merged 1 commit into from
Nov 13, 2024
Merged
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
28 changes: 28 additions & 0 deletions tasks/dnf5.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
- name: Upgrade all packages
block:
# TODO: Remove the following block when that becomes possible.
# See #64 for more details.
- name: Upgrade the kernel-core package separately on Fedora
when: ansible_distribution == "Fedora"
block:
- name: Update package cache (Fedora)
ansible.builtin.dnf5:
update_cache: true
- name: Upgrade the kernel-core package separately (Fedora)
ansible.builtin.dnf5:
name: "{{ item }}"
# ansible-lint generates a warning that "package installs
# should not use latest" here, but this is one place where
# we want to use it.
state: latest # noqa package-latest
loop:
- kernel-core
- name: Upgrade all packages
ansible.builtin.dnf5:
name: "*"
# ansible-lint generates a warning that "package installs
# should not use latest" here, but this is one place where we
# want to use it.
state: latest # noqa package-latest
update_cache: true
Loading