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
|
- postfix
|
||||||
- mod_ssl
|
- mod_ssl
|
||||||
- letsencrypt
|
- letsencrypt
|
||||||
|
- cronie
|
||||||
|
|
||||||
- name: configure postfix for email encryption and not relaying to bastion
|
- name: configure postfix for email encryption and not relaying to bastion
|
||||||
command: "{{ item }}"
|
command: "{{ item }}"
|
||||||
|
@ -118,7 +119,11 @@
|
||||||
tags:
|
tags:
|
||||||
- config
|
- 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 }}
|
service: state=started enabled=yes name={{ item }}
|
||||||
with_items:
|
with_items:
|
||||||
- httpd
|
- httpd
|
||||||
|
- crond
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue