Simplifies notation of conditions for hook script creation

This commit is contained in:
Frank Sachsenheim 2020-12-18 16:39:38 +01:00
parent 878c8e2664
commit ae6bcd587e

View File

@ -22,7 +22,9 @@
owner: root
group: root
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
template:
@ -31,7 +33,9 @@
owner: root
group: root
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.
command: "{{ certbot_create_command }}"