2024-09-24 08:37:09 +00:00
|
|
|
- name: GRUB boot password protection
|
2024-09-23 12:30:38 +00:00
|
|
|
blockinfile:
|
|
|
|
path: /etc/grub.d/40_custom
|
|
|
|
block: |
|
2024-09-24 08:37:09 +00:00
|
|
|
set superusers="{{ grub_user }}"
|
|
|
|
password_pbkdf2 {{ grub_user }} {{ grub_code }}
|
2024-09-23 12:30:38 +00:00
|
|
|
notify: grub-register
|