mirror of
https://github.com/geerlingguy/ansible-role-certbot.git
synced 2025-04-20 09:11:43 +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:
|
service:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: started
|
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 }}"
|
with_items: "{{ certbot_create_standalone_stop_services }}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user