vn-ansible/roles/secure-grub/tasks/main.yml

8 lines
215 B
YAML
Raw Normal View History

2024-10-16 15:53:15 +00:00
- name: GRUB boot password protection
blockinfile:
path: /etc/grub.d/40_custom
block: |
set superusers="{{ grub_user }}"
password_pbkdf2 {{ grub_user }} {{ grub_code }}
notify: grub-register