diff --git a/roles/config-base-debian-os/handlers/main.yaml b/roles/config-base-debian-os/handlers/main.yaml index 629df77..cbb85c3 100644 --- a/roles/config-base-debian-os/handlers/main.yaml +++ b/roles/config-base-debian-os/handlers/main.yaml @@ -9,4 +9,10 @@ - name: restart nslcd service: name: "{{ nslcd_daemon }}" - state: restarted \ No newline at end of file + state: restarted + +# update grub +#- name: update grub config +- name: grub register + command: update-grub + # when: grub_register.changed \ No newline at end of file diff --git a/roles/config-base-debian-os/tasks/main.yaml b/roles/config-base-debian-os/tasks/main.yaml index 505100c..0d5831e 100644 --- a/roles/config-base-debian-os/tasks/main.yaml +++ b/roles/config-base-debian-os/tasks/main.yaml @@ -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 + #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++