major refactoring
This commit is contained in:
16
roles/config/tasks/grub.yml
Normal file
16
roles/config/tasks/grub.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
- name: "grub: Check if BootLoaderSpec is enabled"
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/default/grub
|
||||
line: 'GRUB_ENABLE_BLSCFG=true'
|
||||
#regexp: '^GRUB_ENABLE_BLSCFG=[tT]rue'
|
||||
state: present
|
||||
check_mode: yes
|
||||
register: conf
|
||||
|
||||
- name: "grub: Enable BootLoaderSpec"
|
||||
ansible.builtin.command:
|
||||
cmd: grub2-switch-to-blscfg
|
||||
become: yes
|
||||
when:
|
||||
- conf.changed != false
|
||||
Reference in New Issue
Block a user