From 6d1cbb44df17e986a7b7f1702abdf28905214636 Mon Sep 17 00:00:00 2001 From: Pierre Riteau Date: Sun, 4 Feb 2024 16:18:41 +0100 Subject: [PATCH] Fix GRUB variable in task names --- roles/grubcmdline/tasks/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/roles/grubcmdline/tasks/main.yml b/roles/grubcmdline/tasks/main.yml index e191d83..751175e 100644 --- a/roles/grubcmdline/tasks/main.yml +++ b/roles/grubcmdline/tasks/main.yml @@ -25,7 +25,8 @@ ansible.builtin.set_fact: grub_cmdline_linux_default: >- {{ grub_result.content | b64decode | regex_search('^GRUB_CMDLINE_LINUX_DEFAULT.*$', multiline=True) | regex_replace('^GRUB_CMDLINE_LINUX_DEFAULT="(.*)"$', '\1') }} -- name: Display GRUB_CMDLINE_DEFAULT + +- name: Display GRUB_CMDLINE_LINUX_DEFAULT ansible.builtin.debug: var: grub_cmdline_linux_default @@ -43,7 +44,7 @@ ansible.builtin.set_fact: grub_cmdline_linux_new: "{{ grub_cmdline_linux_default.split() | difference(grub_cmdline_linux_remove) + kernel_cmdline | select() }}" -- name: Display newly computed GRUB_CMDLINE_DEFAULT +- name: Display newly computed GRUB_CMDLINE_LINUX_DEFAULT ansible.builtin.debug: var: grub_cmdline_linux_new