[inspircd] Refresh certificate every month
							parent
							
								
									4178285249
								
							
						
					
					
						commit
						7a2394e1e0
					
				| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -0,0 +1,7 @@
 | 
			
		|||
#!/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)
 | 
			
		||||
		Loading…
	
		Reference in New Issue