diff options
author | Michael Janczyk | 2024-09-18 18:40:26 +0200 |
---|---|---|
committer | Michael Janczyk | 2024-09-18 18:42:00 +0200 |
commit | 737836835cd48f441a3e97a251d0fe55b67d93df (patch) | |
tree | a896120e73cfe6e18ba950eab20c8a4181404957 | |
parent | chore(slx-builder): Install microcode in RedHat 9 and link intel-ucode for Re... (diff) | |
download | ansible-dracut-737836835cd48f441a3e97a251d0fe55b67d93df.tar.gz ansible-dracut-737836835cd48f441a3e97a251d0fe55b67d93df.tar.xz ansible-dracut-737836835cd48f441a3e97a251d0fe55b67d93df.zip |
fix(slx-builder): Fix Copilot lying about family and directory options
-rw-r--r-- | slx-builder/tasks/kernel.yml | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/slx-builder/tasks/kernel.yml b/slx-builder/tasks/kernel.yml index d835f46..39cac25 100644 --- a/slx-builder/tasks/kernel.yml +++ b/slx-builder/tasks/kernel.yml @@ -40,13 +40,14 @@ builder_kernel_args: "-k {{ builder_kernel_version }} -H {{ builder_kernel_source }}" - name: Remove intel microcode directory - directory: /usr/lib/firmware/intel-ucode - state: absent - when: family == "RedHat" + file: + path: /usr/lib/firmware/intel-ucode + state: absent + when: ansible_facts['os_family'] == "RedHat" - name: Link the kernel microcode directory file: src: "/usr/lib/firmware/{{ builder_kernel_version }}/intel-ucode" dest: /usr/lib/firmware/intel-ucode state: link - when: family == "RedHat" and builder_kernel_version is defined + when: ansible_facts['os_family'] == "RedHat" and builder_kernel_version is defined |