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

12 lines
439 B
YAML
Raw Normal View History

2023-05-28 22:17:33 +02:00
---
- name: configure systemd-notifier.cymais@.service
2023-05-28 22:17:33 +02:00
template:
src: systemd-notifier@.service.j2
dest: "/etc/systemd/system/systemd-notifier.cymais@.service"
2023-05-28 22:17:33 +02:00
notify: "restart systemd-notifier service"
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