supysonic/handlers/main.yml

22 lines
1.1 KiB
YAML
Raw Permalink Normal View History

2019-05-13 17:00:10 +00:00
---
# handlers file for chainetv
- name: Reload systemd
systemd:
daemon_reload: yes
become: yes
2021-11-14 10:32:06 +00:00
- name: restart supysonic service
2019-05-13 17:00:10 +00:00
systemd:
2021-11-14 10:32:06 +00:00
name: "supysonic-server.service" # not required. Name of the service. When using in a chroot environment you always need to specify the full name i.e. (crond.service).
2019-05-13 17:00:10 +00:00
state: restarted # not required. choices: reloaded;restarted;started;stopped. C(started)/C(stopped) are idempotent actions that will not run commands unless necessary. C(restarted) will always bounce the service. C(reloaded) will always reload.
enabled: true
2021-11-14 10:32:06 +00:00
become: yes
2019-11-17 16:12:24 +00:00
2021-11-14 10:32:06 +00:00
- name: restart daemon service
2019-11-17 16:12:24 +00:00
systemd:
name: "{{supysonic_name}}-daemon.service" # not required. Name of the service. When using in a chroot environment you always need to specify the full name i.e. (crond.service).
state: restarted # not required. choices: reloaded;restarted;started;stopped. C(started)/C(stopped) are idempotent actions that will not run commands unless necessary. C(restarted) will always bounce the service. C(reloaded) will always reload.
enabled: true
2021-11-14 10:32:06 +00:00
become: yes