Add inspircd certificate renewal hook
This commit is contained in:
parent
f5eba3484a
commit
2a9ef9ae79
2 changed files with 14 additions and 0 deletions
roles/inspircd
|
@ -11,3 +11,11 @@
|
||||||
- name: install inspircd
|
- name: install inspircd
|
||||||
package:
|
package:
|
||||||
name: inspircd
|
name: inspircd
|
||||||
|
|
||||||
|
- name: install inspircd acme deploy hook
|
||||||
|
template:
|
||||||
|
src: usr/local/bin/acme-deploy-inspircd.j2
|
||||||
|
dest: /usr/local/bin/acme-deploy-inspircd
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: 0755
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/bash
|
||||||
|
{{ ansible_managed | comment }}
|
||||||
|
|
||||||
|
/usr/bin/install --owner=irc --group=irc --mode=0644 ${RENEWED_LINEAGE}/fullchain.pem /etc/inspircd/ssl.crt
|
||||||
|
/usr/bin/install --owner=irc --group=irc --mode=0600 ${RENEWED_LINEAGE}/privkey.pem /etc/inspircd/ssl.key
|
||||||
|
/usr/bin/pkill -USR1 inspircd
|
Loading…
Add table
Reference in a new issue