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 }}"