mirror of
https://github.com/idealista/cookiecutter-ansible-role.git
synced 2024-11-19 19:06:12 +01:00
8 lines
236 B
YAML
8 lines
236 B
YAML
---
|
|
{% 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 %} |