Skip to content

Commit

Permalink
Fix Post-Upgrade Kernel Validation on Ansible 2.14+ (#146)
Browse files Browse the repository at this point in the history
* remove embedded template from post upgrade kernel validation conditional

* re-use rhel_dest_major_version fact in kernel check assertion conditional

* remove extra line

---------

Co-authored-by: Blaine Story <blaine.story@smud.org>
  • Loading branch information
blainestory and Blaine Story authored Jan 9, 2024
1 parent 0f06fe6 commit 9e56798
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/upgrade/tasks/upgrade-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

- name: Validate running kernel matches OS version
ansible.builtin.assert:
that: "'el{{ rhel_dest_major_version }}' in ansible_kernel"
that: "'el' ~ rhel_dest_major_version in ansible_kernel"
fail_msg: Kernel version {{ ansible_kernel }} does not match expected OS major version el{{ rhel_dest_major_version }}.
success_msg: Current kernel version is {{ ansible_kernel }}.

Expand Down

0 comments on commit 9e56798

Please sign in to comment.