supysonic/handlers/main.yml
vincent 2d9ed43ca5
Some checks failed
continuous-integration/drone/push Build is failing
update launcher to supysonic-server
2021-11-14 11:32:06 +01:00

22 lines
1.1 KiB
YAML

---
# handlers file for chainetv
- name: Reload systemd
systemd:
daemon_reload: yes
become: yes
- name: restart supysonic service
systemd:
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).
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
become: yes
- name: restart daemon service
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
become: yes