forked from Netz39_Admin/netz39-infra-ansible
cron job für dehydrated
This commit is contained in:
parent
fbd1d7a2ac
commit
4ff88a0af3
2 changed files with 10 additions and 1 deletions
|
@ -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
|
||||||
|
|
|
@ -50,4 +50,10 @@
|
||||||
src: config.j2
|
src: config.j2
|
||||||
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"
|
Loading…
Reference in a new issue