nginx/server: Validate certificate before installing

This commit is contained in:
Timo Makinen 2021-02-12 06:26:25 +00:00
parent 5f679fd659
commit af061d0083

View file

@ -38,6 +38,7 @@
mode: 0644
owner: root
group: "{{ ansible_wheel }}"
validate: /usr/bin/openssl x509 -in %s -noout
with_first_found:
- "/srv/letsencrypt/live/{{ site }}/fullchain.pem"
- "/srv/ca/certs/{{ site }}.crt"