mirror of
https://github.com/geerlingguy/ansible-role-certbot.git
synced 2025-04-19 17:01:37 +02:00
Add condition to only stop services if one exists
This commit is contained in:
parent
130e3aa786
commit
b8f221880b
@ -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 }}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user