This commit is contained in:
Antonio J. Delgado 2023-02-09 20:42:32 +02:00
parent 6e7a0dc228
commit 9236311180
2 changed files with 2 additions and 1 deletions

View file

@ -11,7 +11,7 @@
when:
- "'ssl' in item"
- item['ssl']
with_items: "{{ vhosts }}"
loop: "{{ vhosts }}"
- name: Start Apache
service:

View file

@ -9,6 +9,7 @@
stat:
path: "/etc/letsencrypt/archive/{{ item.vhostname }}"
register: certificate_folder
loop: "{{ vhosts }}"
- name: Ensure certificate is created
include_tasks: configure_certificate.yml