add when to update grub
This commit is contained in:
parent
e946fa0284
commit
97bcef6e50
|
@ -165,10 +165,12 @@
|
||||||
block: |
|
block: |
|
||||||
set superusers="{{ user_grub }}"
|
set superusers="{{ user_grub }}"
|
||||||
password_pbkdf2 {{ user_grub }} {{ code_grub }}
|
password_pbkdf2 {{ user_grub }} {{ code_grub }}
|
||||||
|
register: grub_register
|
||||||
|
|
||||||
# update grub
|
# update grub
|
||||||
- name: update grub config
|
- name: update grub config
|
||||||
command: update-grub
|
command: update-grub
|
||||||
|
when: grub_register.changed
|
||||||
|
|
||||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue