1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_acmetool.git synced 2024-08-16 12:29:49 +02:00
ansible_role_acmetool/templates/acmetool_restart.j2

11 lines
399 B
Django/Jinja

# {{ ansible_managed }}
# https://github.com/roles-ansible/ansible_role_acmetool.git
#
# restart hook configuration file
# adding the service to the list of services to be restarted.
{% set services = ['$SERVICES'] %}
{% for service in acme_restart_services %}
{% set _ = services.append(service) %}
{% endfor %}
{% set services_string = services | join(' ') %}
SERVICES="{{ services_string }}"