diff --git a/linux/base-config-debian/roles/base-config-debian-os/tasks/main.yaml b/linux/base-config-debian/roles/base-config-debian-os/tasks/main.yaml index 437ccb3..8afe44a 100644 --- a/linux/base-config-debian/roles/base-config-debian-os/tasks/main.yaml +++ b/linux/base-config-debian/roles/base-config-debian-os/tasks/main.yaml @@ -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 #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++