diff --git a/tasks/create-cert-standalone.yml b/tasks/create-cert-standalone.yml index 943991c..9bec79b 100644 --- a/tasks/create-cert-standalone.yml +++ b/tasks/create-cert-standalone.yml @@ -22,5 +22,7 @@ service: name: "{{ item }}" state: started - when: not letsencrypt_cert.stat.exists + when: + - not letsencrypt_cert.stat.exists + - certbot_create_standalone_stop_services with_items: "{{ certbot_create_standalone_stop_services }}"