mirror of
https://github.com/geerlingguy/ansible-role-certbot.git
synced 2025-04-19 17:01:37 +02:00
* Add another become
This commit is contained in:
parent
b8f221880b
commit
d5aa1fce30
@ -1,5 +1,6 @@
|
||||
---
|
||||
- name: Check if certificate already exists.
|
||||
become: True
|
||||
stat:
|
||||
path: /etc/letsencrypt/live/{{ cert_item.domains | first }}/cert.pem
|
||||
register: letsencrypt_cert
|
||||
@ -22,7 +23,5 @@
|
||||
service:
|
||||
name: "{{ item }}"
|
||||
state: started
|
||||
when:
|
||||
- not letsencrypt_cert.stat.exists
|
||||
- certbot_create_standalone_stop_services
|
||||
when: not letsencrypt_cert.stat.exists
|
||||
with_items: "{{ certbot_create_standalone_stop_services }}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user