myos/ansible/roles/hosts/handlers/main.yml

22 lines
585 B
YAML

---
# file: handlers/main.yml
- name: update boot - syslinux
environment:
PATH: "{{ ansible_env.PATH }}:/usr/sbin:/sbin"
with_together:
- '{{ boot_config }}'
- '{{ boot_config_handler_notify.results }}'
command: "update-extlinux"
when: item.1.changed and item.0.dest == "/etc/update-extlinux.conf"
- name: update boot - grub
environment:
PATH: "{{ ansible_env.PATH }}:/usr/sbin:/sbin"
with_together:
- '{{ boot_config }}'
- '{{ boot_config_handler_notify.results }}'
command: "update-grub"
when: item.1.changed and item.0.dest == "/etc/default/grub"