Skip to content

Commit

Permalink
Fix GRUB variable in task names
Browse files Browse the repository at this point in the history
  • Loading branch information
priteau committed Sep 26, 2024
1 parent 888807a commit 6d1cbb4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions roles/grubcmdline/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down

0 comments on commit 6d1cbb4

Please sign in to comment.