vn-ansible/roles/config-secure-grub/tasks/main.yaml

19 lines
635 B
YAML

- 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
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# 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
# tags:
# - grub-password
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++