Skip to content
Snippets Groups Projects
Commit 7a2394e1 authored by Benjamin Graillot's avatar Benjamin Graillot
Browse files

[inspircd] Refresh certificate every month

parent 41782852
No related branches found
No related tags found
1 merge request!248[inspircd] Refresh certificate every month
......@@ -16,3 +16,9 @@
- { dest: modules.conf, mode: "0600" }
- { dest: inspircd.motd, mode: "0644" }
notify: Reload InspIRCd
- name: Deploy certificate refresh CRON
template:
src: "cron.monthly/irc-certs.j2"
dest: "/etc/cron.monthly/irc-certs"
mode: 0755
#!/bin/sh
{{ ansible_header | comment }}
cp /etc/letsencrypt/live/crans.org/fullchain.pem /etc/inspircd/fullchain.pem
cp /etc/letsencrypt/live/crans.org/privkey.pem /etc/inspircd/privkey.pem
chown irc:irc /etc/inspircd/fullchain.pem /etc/inspircd/privkey.pem
kill -USR1 $(cat /var/run/inspircd/inspircd.pid)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment