2024-02-15 11:31:44 +00:00
|
|
|
|
|
|
|
- name: "[CONFIG SECURE GRUB] Comprobando si es necesario configurar secure grub"
|
|
|
|
meta: end_host
|
|
|
|
when: secure-grub_enabled is not defined or not secure-grub_enabled
|
|
|
|
|
2024-02-12 09:44:48 +00:00
|
|
|
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
# Secure GRUB edition with password
|
|
|
|
# paso1 - Proteger grub
|
|
|
|
- name: GRUB password boot protection
|
|
|
|
blockinfile:
|
|
|
|
path: /etc/grub.d/40_custom
|
|
|
|
block: |
|
|
|
|
set superusers="{{ user_grub }}"
|
|
|
|
password_pbkdf2 {{ user_grub }} {{ code_grub }}
|
|
|
|
notify: grub register
|
2024-02-15 09:35:27 +00:00
|
|
|
# tags:
|
|
|
|
# - grub-password
|
2024-02-12 09:44:48 +00:00
|
|
|
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|