Skip to content

Commit

Permalink
Merge pull request #65 from cisagov/bugfix/work-around-broken-fedora-…
Browse files Browse the repository at this point in the history
…kernel-package

Install the `kernel-core` package separately on Fedora
  • Loading branch information
jsf9k authored Aug 11, 2024
2 parents bae0671 + a7f1410 commit e9dcb41
Showing 1 changed file with 26 additions and 7 deletions.
33 changes: 26 additions & 7 deletions tasks/dnf.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,28 @@
---
- name: Upgrade all packages
ansible.builtin.dnf:
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
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.dnf:
update_cache: true
- name: Upgrade the kernel-core package separately (Fedora)
ansible.builtin.dnf:
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.dnf:
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

0 comments on commit e9dcb41

Please # to comment.