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

improve J2 Filters

This commit is contained in:
L3D 2023-10-29 22:40:35 +01:00
parent 99bb507d4c
commit 5024c06b3b
No known key found for this signature in database
GPG key ID: AD65B920933B4B20
2 changed files with 10 additions and 10 deletions

View file

@ -3,8 +3,8 @@
#
# reload hook configuration file
# adding the service to the list of services to be reloaded by acmetool.
SERVICES="$SERVICES
{%- for service in acme_reload_services -%}
{{- ' ' -}}
{{- service -}}
{%- endfor -%}"
{% set services = '' %}
{% for service in acme_reload_services %}
{% set _ = services.extend(' ' ~ service) %}
{% endfor %}
SERVICES="$SERVICES {{ services }}"

View file

@ -3,8 +3,8 @@
#
# restart hook configuration file
# adding the service to the list of services to be restarted.
SERVICES="$SERVICES
{%- for service in acme_restart_services -%}
{{- ' ' -}}
{{- service -}}
{%- endfor -%}"
{% set services = '' %}
{% for service in acme_restart_services %}
{% set _ = services.extend(' ' ~ service) %}
{% endfor %}
SERVICES="$SERVICES {{ services }}"