chainetv/handlers/main.yml

21 lines
1.2 KiB
YAML
Raw Normal View History

2019-04-25 19:59:52 +00:00
---
2019-04-26 12:04:48 +00:00
# handlers file for chainetv
- name: Reload systemd
systemd:
daemon_reload: yes
become: yes
- name: ensure socket is start
systemd:
name: "gunicorn-{{name}}.socket" # not required. Name of the service. When using in a chroot environment you always need to specify the full name i.e. (crond.service).
enabled: true # not required. Whether the service should start on boot. B(At least one of state and enabled are required.)
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.
become: yes
- name: restart service
systemd:
name: "gunicorn-{{name}}.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.
become: yes