computer-playbook/roles/systemd-notifier/handlers/main.yml

11 lines
335 B
YAML

- name: "restart systemd-notifier service"
systemd:
name: systemd-notifier.service
daemon_reload: yes
when: run_once_systemd_notifier_service is not defined
- name: run the systemd_notifier_service tasks once
set_fact:
run_once_systemd_notifier_service: true
when: run_once_systemd_notifier_service is not defined