From eff66e7b3bb9329f4f38ab69734f3370d5d60c22 Mon Sep 17 00:00:00 2001 From: Hakoen Date: Wed, 3 Aug 2022 12:45:37 +0000 Subject: [PATCH] Avoid deprecation warning on Ansible evaluating bare variables as bool --- 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 1d1f979..89df3ec 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 + - certbot_create_standalone_stop_services | length - 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 + - certbot_create_standalone_stop_services | length - name: Generate new certificate if one doesn't exist. command: "{{ certbot_create_command }}"