Skip to content
Snippets Groups Projects
Commit c4b6160f authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Update LE certificates if not present

parent 9d68bfba
No related branches found
No related tags found
No related merge requests found
......@@ -85,6 +85,18 @@
- acmetool
- certificates
- name: test if the desired certificates are present
stat:
path: "/var/lib/acme/live/{{item.hostnames[0]}}"
register: live_stat
changed_when: not live_stat.stat.exists
with_items: "{{acmetool_certificates}}"
notify:
- update certificates
tags:
- acmetool
- certificates
- name: ensure certificates are updated regularly
systemd:
name: acmetool.timer
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment