mirror of
https://github.com/geerlingguy/ansible-role-certbot.git
synced 2025-04-19 17:01:37 +02:00
Create webroot directory if it doesn't exist
This commit is contained in:
parent
2e13cb13cf
commit
50d8921ec2
@ -12,6 +12,11 @@
|
||||
run_once: true
|
||||
when: certbot_deployhook is defined
|
||||
|
||||
- name: Create webroot directory if it doesn't exist yet
|
||||
file:
|
||||
path: "{{ cert_item.webroot }}"
|
||||
state: directory
|
||||
|
||||
- name: Generate new certificate if one doesn't exist.
|
||||
command: "{{ certbot_create_command }}"
|
||||
when: not letsencrypt_cert.stat.exists
|
||||
|
Loading…
x
Reference in New Issue
Block a user