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

12 lines
399 B
Text
Raw Normal View History

2021-08-11 23:17:29 +02:00
# {{ 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.
2023-10-30 01:53:47 +01:00
{% set services = ['$SERVICES'] %}
2023-10-29 22:40:35 +01:00
{% for service in acme_restart_services %}
2023-10-30 01:53:47 +01:00
{% set _ = services.append(service) %}
2023-10-29 22:40:35 +01:00
{% endfor %}
2023-10-30 01:53:47 +01:00
{% set services_string = services | join(' ') %}
SERVICES="{{ services_string }}"