update grub with handler
This commit is contained in:
parent
115cf8736e
commit
49506f5561
|
@ -10,3 +10,9 @@
|
|||
service:
|
||||
name: "{{ nslcd_daemon }}"
|
||||
state: restarted
|
||||
|
||||
# update grub
|
||||
#- name: update grub config
|
||||
- name: grub register
|
||||
command: update-grub
|
||||
# when: grub_register.changed
|
|
@ -245,14 +245,10 @@
|
|||
block: |
|
||||
set superusers="{{ user_grub }}"
|
||||
password_pbkdf2 {{ user_grub }} {{ code_grub }}
|
||||
notify: grub register
|
||||
tags:
|
||||
- grub-password
|
||||
register: grub_register
|
||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
# paso2 - update grub
|
||||
- name: update grub config
|
||||
command: update-grub
|
||||
when: grub_register.changed
|
||||
|
||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
|
Loading…
Reference in New Issue