mirror of
https://github.com/roles-ansible/ansible_role_acmetool.git
synced 2024-08-16 12:29:49 +02:00
Update acme tool hook templates
This commit is contained in:
parent
5024c06b3b
commit
c5357bbc87
5 changed files with 11 additions and 11 deletions
|
@ -2,8 +2,7 @@
|
||||||
- name: Disable acmetool for acme_domain_unwant_list domains
|
- name: Disable acmetool for acme_domain_unwant_list domains
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.command: "acmetool unwant {{ _domain.name }}"
|
ansible.builtin.command: "acmetool unwant {{ _domain.name }}"
|
||||||
loop:
|
loop: "{{ acme_domain_unwant_list }}"
|
||||||
- "{{ acme_domain_unwant_list }}"
|
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: _domain
|
loop_var: _domain
|
||||||
changed_when: true
|
changed_when: true
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
ansible.builtin.command: "acmetool want {{ _domain.name }}"
|
ansible.builtin.command: "acmetool want {{ _domain.name }}"
|
||||||
args:
|
args:
|
||||||
creates: "/var/lib/acme/live/{{ _domain.name }}"
|
creates: "/var/lib/acme/live/{{ _domain.name }}"
|
||||||
loop:
|
|
||||||
- "{{ acme_domain_want_list }}"
|
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: _domain
|
loop_var: _domain
|
||||||
|
loop: "{{ acme_domain_want_list }}"
|
||||||
|
|
|
@ -3,8 +3,9 @@
|
||||||
#
|
#
|
||||||
# reload hook configuration file
|
# reload hook configuration file
|
||||||
# adding the service to the list of services to be reloaded by acmetool.
|
# adding the service to the list of services to be reloaded by acmetool.
|
||||||
{% set services = '' %}
|
{% set services = ['$SERVICES'] %}
|
||||||
{% for service in acme_reload_services %}
|
{% for service in acme_reload_services %}
|
||||||
{% set _ = services.extend(' ' ~ service) %}
|
{% set _ = services.append(service) %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
SERVICES="$SERVICES {{ services }}"
|
{% set services_string = services | join(' ') %}
|
||||||
|
SERVICES="{{ services_string }}"
|
||||||
|
|
|
@ -3,8 +3,9 @@
|
||||||
#
|
#
|
||||||
# restart hook configuration file
|
# restart hook configuration file
|
||||||
# adding the service to the list of services to be restarted.
|
# adding the service to the list of services to be restarted.
|
||||||
{% set services = '' %}
|
{% set services = ['$SERVICES'] %}
|
||||||
{% for service in acme_restart_services %}
|
{% for service in acme_restart_services %}
|
||||||
{% set _ = services.extend(' ' ~ service) %}
|
{% set _ = services.append(service) %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
SERVICES="$SERVICES {{ services }}"
|
{% set services_string = services | join(' ') %}
|
||||||
|
SERVICES="{{ services_string }}"
|
||||||
|
|
|
@ -33,5 +33,5 @@ acmetool__restart_hook:
|
||||||
- 'files'
|
- 'files'
|
||||||
|
|
||||||
# versionscheck
|
# versionscheck
|
||||||
playbook_version_number: 35 # should be a integer
|
playbook_version_number: 36 # should be a integer
|
||||||
playbook_version_path: 'do1jlr.role-acmetool.version'
|
playbook_version_path: 'do1jlr.role-acmetool.version'
|
||||||
|
|
Loading…
Reference in a new issue