From 0b97320c72e7e7ff182ab19e8154d412726f8ce7 Mon Sep 17 00:00:00 2001 From: Hakoen Date: Wed, 3 Aug 2022 13:16:17 +0000 Subject: [PATCH] Have a boolean operator instead of bare var or lenght --- tasks/create-cert-standalone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/create-cert-standalone.yml b/tasks/create-cert-standalone.yml index 89df3ec..cfaaec8 100644 --- a/tasks/create-cert-standalone.yml +++ b/tasks/create-cert-standalone.yml @@ -24,7 +24,7 @@ mode: 0750 when: - certbot_create_standalone_stop_services is defined - - certbot_create_standalone_stop_services | length + - certbot_create_standalone_stop_services | length > 0 - name: Create post hook to start services. template: @@ -35,7 +35,7 @@ mode: 0750 when: - certbot_create_standalone_stop_services is defined - - certbot_create_standalone_stop_services | length + - certbot_create_standalone_stop_services | length > 0 - name: Generate new certificate if one doesn't exist. command: "{{ certbot_create_command }}"