libravatar: install cron.daily job for cert renewal

This commit is contained in:
clime 2019-03-08 11:55:11 +01:00
parent 03153a2909
commit 306becedf8
2 changed files with 9 additions and 1 deletions

View file

@ -0,0 +1,3 @@
#!/bin/bash
certbot renew --post-hook 'systemctl reload httpd'

View file

@ -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