Update to 2022-01-12 10:14

This commit is contained in:
Daniel Berteaud
2022-01-12 10:14:43 +01:00
parent 898ae43de4
commit e73f05f073
22 changed files with 61 additions and 32 deletions

View File

@@ -58,6 +58,19 @@
notify: reload httpd
tags: [conf,web]
- name: Check if default cert exists
stat: path={{ httpd_cert_path }}
register: httpd_default_cert
tags: [conf,cert,web]
- name: Create default self signed cert
include_tasks: ../includes/create_selfsigned_cert.yml
vars:
cert_path: "{{ httpd_cert_path }}"
cert_key_path: "{{ cert_key_path }"
when: not httpd_default_cert.stat.exists
tags: [conf,cert,web]
- name: Check if Let's Encrypt' cert exist
stat: path=/var/lib/dehydrated/certificates/certs/{{ item.ssl.letsencrypt_cert }}/cert.pem
register: httpd_letsencrypt_certs