cron job für dehydrated

This commit is contained in:
David Kilias 2021-02-15 18:18:36 +01:00 committed by Gitea
parent fbd1d7a2ac
commit 4ff88a0af3
2 changed files with 10 additions and 1 deletions

View file

@ -6,3 +6,6 @@ dehydrated_binary: "/usr/local/bin/dehydrated"
dehydrated_config_dir: "/usr/local/etc/dehydrated" dehydrated_config_dir: "/usr/local/etc/dehydrated"
dehydrated_certs_dir: "{{ dehydrated_config_dir }}/certs" dehydrated_certs_dir: "{{ dehydrated_config_dir }}/certs"
dehydrated_wellknown_dir: "{{ dehydrated_config_dir }}/challenge" dehydrated_wellknown_dir: "{{ dehydrated_config_dir }}/challenge"
dehydrated_cron_minute: 0
dehydrated_cron_hour: 3

View file

@ -51,3 +51,9 @@
dest: "{{ dehydrated_config_dir }}/config" dest: "{{ dehydrated_config_dir }}/config"
notify: dehydrated register notify: dehydrated register
- name: Install dehydrated cron job.
cron:
name: renew dehydrated certs
hour: dehydrated_cron_hour
minute: dehydrated_cron_minute
job: "{{ dehydrated_binary }} -c -g"