2022-10-11 09:18:51 +02:00
|
|
|
---
|
|
|
|
- name: Ensure installation
|
|
|
|
include_tasks: install.yml
|
2023-02-09 19:40:08 +01:00
|
|
|
|
2022-10-11 09:18:51 +02:00
|
|
|
- name: Ensure configuration
|
2023-02-09 19:40:08 +01:00
|
|
|
include_tasks: configure.yml
|
|
|
|
|
|
|
|
- name: Get certificate file
|
|
|
|
stat:
|
|
|
|
path: "/etc/letsencrypt/archive/{{ item.vhostname }}"
|
|
|
|
register: certificate_folder
|
|
|
|
|
|
|
|
- name: Ensure certificate is created
|
|
|
|
include_tasks: configure_certificate.yml
|
|
|
|
when: not certificate_folder.stat.exists
|