Add condition to only stop services if one exists

This commit is contained in:
Lyz 2018-03-07 11:37:46 +01:00
parent 130e3aa786
commit b8f221880b
No known key found for this signature in database
GPG Key ID: 6C7D7C1612CDE02F

View File

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