mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-01 14:02:12 +08:00
libravatar: install cron.daily job for cert renewal
This commit is contained in:
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
|
||||
|
||||
Reference in New Issue
Block a user