cookiecutter-ansible-role-d.../{{cookiecutter.app_name}}_role/handlers/main.yml

8 lines
236 B
YAML
Raw Normal View History

2020-04-28 13:23:10 +02:00
---
{% if cookiecutter.has_service == 'True' %}
- name: restart {{ cookiecutter.app_name }}
systemd:
name: {{ cookiecutter.app_name }}
state: restarted
when: {{ cookiecutter.app_name }}_service_state != 'stopped'
{% endif %}