From ae6bcd587e541e857f036743c47ceab6aea3cbc5 Mon Sep 17 00:00:00 2001 From: Frank Sachsenheim Date: Fri, 18 Dec 2020 16:39:38 +0100 Subject: [PATCH] Simplifies notation of conditions for hook script creation --- tasks/create-cert-standalone.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tasks/create-cert-standalone.yml b/tasks/create-cert-standalone.yml index afd0794..34986e0 100644 --- a/tasks/create-cert-standalone.yml +++ b/tasks/create-cert-standalone.yml @@ -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 }}"