-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #65 from cisagov/bugfix/work-around-broken-fedora-…
…kernel-package Install the `kernel-core` package separately on Fedora
- Loading branch information
Showing
1 changed file
with
26 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |