ansible-role-apache_ssl_vhosts/tasks/main.yml

15 lines
374 B
YAML

---
- name: Ensure installation
include_tasks: install.yml
- name: Ensure configuration
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