add when to update grub

This commit is contained in:
Ruben Blanco 2023-10-17 10:48:34 +02:00
parent e946fa0284
commit 97bcef6e50
1 changed files with 2 additions and 0 deletions

View File

@ -165,10 +165,12 @@
block: |
set superusers="{{ user_grub }}"
password_pbkdf2 {{ user_grub }} {{ code_grub }}
register: grub_register
# update grub
- name: update grub config
command: update-grub
when: grub_register.changed
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++