libravatar: install cron.daily job for cert renewal
This commit is contained in:
parent
03153a2909
commit
306becedf8
2 changed files with 9 additions and 1 deletions
3
roles/libravatar/files/cron.daily/libravatar
Normal file
3
roles/libravatar/files/cron.daily/libravatar
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
certbot renew --post-hook 'systemctl reload httpd'
|
|
@ -21,6 +21,7 @@
|
|||
- postfix
|
||||
- mod_ssl
|
||||
- letsencrypt
|
||||
- cronie
|
||||
|
||||
- name: configure postfix for email encryption and not relaying to bastion
|
||||
command: "{{ item }}"
|
||||
|
@ -118,7 +119,11 @@
|
|||
tags:
|
||||
- config
|
||||
|
||||
- name: ensure httpd state
|
||||
- name: cron.daily job
|
||||
copy: src="cron.daily/libravatar" dest="/etc/cron.daily/libravatar"
|
||||
|
||||
- name: ensure service states
|
||||
service: state=started enabled=yes name={{ item }}
|
||||
with_items:
|
||||
- httpd
|
||||
- crond
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue