From 59f0a5b57a7dc38d7a9e6ad3ef10920af96046e2 Mon Sep 17 00:00:00 2001 From: Bob Mader Date: Tue, 5 Dec 2023 09:10:43 -0600 Subject: [PATCH] fix dracut path (#33) --- changelogs/fragments/no_sbin_dracut.yml | 2 ++ roles/initramfs/tasks/main.yml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/no_sbin_dracut.yml diff --git a/changelogs/fragments/no_sbin_dracut.yml b/changelogs/fragments/no_sbin_dracut.yml new file mode 100644 index 0000000..2897d3a --- /dev/null +++ b/changelogs/fragments/no_sbin_dracut.yml @@ -0,0 +1,2 @@ +bugfixes: + - Fix dracut path diff --git a/roles/initramfs/tasks/main.yml b/roles/initramfs/tasks/main.yml index e3acc93..b901b5d 100644 --- a/roles/initramfs/tasks/main.yml +++ b/roles/initramfs/tasks/main.yml @@ -19,7 +19,7 @@ - name: Create a new initramfs with the optional additional modules # yamllint disable-line rule:line-length - ansible.builtin.command: '/usr/sbin/dracut {{ ((initramfs_add_modules | length) > 0) | ternary("-a", "") }} "{{ initramfs_add_modules }}" --kver {{ _kernel_version }} --force' + ansible.builtin.command: '/usr/bin/dracut {{ ((initramfs_add_modules | length) > 0) | ternary("-a", "") }} "{{ initramfs_add_modules }}" --kver {{ _kernel_version }} --force' changed_when: true - name: Reboot the server