major refactoring

This commit is contained in:
2022-01-18 23:48:56 +01:00
parent 034332b237
commit fe83fd37f0
40 changed files with 501 additions and 433 deletions

View 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