jdownloader/handlers/main.yml

17 lines
607 B
YAML
Raw Permalink Normal View History

2020-06-11 22:17:08 +00:00
---
# handlers file for JDowloader
- name: Reload systemd
systemd:
daemon_reload: yes
become: yes
- name: restart JDownloader service
systemd:
name: "JDownloader.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