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:
parent
99bb507d4c
commit
5024c06b3b
2 changed files with 10 additions and 10 deletions
|
@ -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 }}"
|
||||
|
|
|
@ -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 }}"
|
||||
|
|
Loading…
Reference in a new issue