mirror of
https://github.com/geerlingguy/ansible-role-certbot.git
synced 2025-04-19 17:01:37 +02:00
Simplifies notation of conditions for hook script creation
This commit is contained in:
parent
878c8e2664
commit
ae6bcd587e
@ -22,7 +22,9 @@
|
|||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0750
|
mode: 0750
|
||||||
when: certbot_create_standalone_stop_services is defined and certbot_create_standalone_stop_services
|
when:
|
||||||
|
- certbot_create_standalone_stop_services is defined
|
||||||
|
- certbot_create_standalone_stop_services
|
||||||
|
|
||||||
- name: create post hook to start services
|
- name: create post hook to start services
|
||||||
template:
|
template:
|
||||||
@ -31,7 +33,9 @@
|
|||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0750
|
mode: 0750
|
||||||
when: certbot_create_standalone_stop_services is defined and certbot_create_standalone_stop_services
|
when:
|
||||||
|
- certbot_create_standalone_stop_services is defined
|
||||||
|
- certbot_create_standalone_stop_services
|
||||||
|
|
||||||
- name: Generate new certificate if one doesn't exist.
|
- name: Generate new certificate if one doesn't exist.
|
||||||
command: "{{ certbot_create_command }}"
|
command: "{{ certbot_create_command }}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user