add when to update grub
This commit is contained in:
parent
e946fa0284
commit
97bcef6e50
|
@ -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
|
||||
|
||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
|
|
Loading…
Reference in New Issue