Skip to content

Commit

Permalink
Changes requested on PR
Browse files Browse the repository at this point in the history
  • Loading branch information
jjo93sa committed Jan 23, 2024
1 parent 0313148 commit 2cb415a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion roles/grubcmdline/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
- name: Check current kernel command line args
ansible.builtin.command: cat /proc/cmdline
register: result
Expand All @@ -22,7 +23,7 @@
- name: Set fact containing GRUB_CMDLINE_LINUX_DEFAULT
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') }} #magic___^_^___line
{{ grub_result.content | b64decode | regex_search('^GRUB_CMDLINE_LINUX_DEFAULT.*$', multiline=True) | regex_replace('^GRUB_CMDLINE_LINUX_DEFAULT="(.*)"$', '\1') }}
- name: Display GRUB_CMDLINE_DEFAULT
ansible.builtin.debug:
var: grub_cmdline_linux_default
Expand Down

0 comments on commit 2cb415a

Please sign in to comment.