Files
silverblue-playbook/roles/config/tasks/grub.yml
2022-01-18 23:48:56 +01:00

17 lines
394 B
YAML

---
- 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