diff --git a/tasks/create-cert-standalone.yml b/tasks/create-cert-standalone.yml index 9523f23..34986e0 100644 --- a/tasks/create-cert-standalone.yml +++ b/tasks/create-cert-standalone.yml @@ -33,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 }}"