Browse Source

Merge branch 'master' into builtin-password-hashing

Sven Neuhaus 7 years ago
parent
commit
30438d2f0e

+ 1
- 1
README.md View File

67
 
67
 
68
 The following steps are done on the remote server by `ssh`ing into it and running these commands.
68
 The following steps are done on the remote server by `ssh`ing into it and running these commands.
69
 
69
 
70
-### 1. Install required packages
70
+### 1. Install required packages e.g `aptitude` is required on Debian
71
 
71
 
72
     apt-get install sudo
72
     apt-get install sudo
73
 
73
 

+ 5
- 0
roles/common/tasks/letsencrypt.yml View File

1
+- name: Add group name ssl-cert for SSL certificates
2
+  group:
3
+    name: ssl-cert
4
+    state: present
5
+
1
 - name: Download LetsEncrypt release
6
 - name: Download LetsEncrypt release
2
   git: repo=https://github.com/letsencrypt/letsencrypt
7
   git: repo=https://github.com/letsencrypt/letsencrypt
3
        dest=/root/letsencrypt
8
        dest=/root/letsencrypt

+ 3
- 0
roles/xmpp/files/etc_letsencrypt_postrenew_prosody.sh View File

1
+#!/bin/bash
2
+
3
+systemctl restart prosody.service

+ 3
- 0
roles/xmpp/tasks/prosody.yml View File

19
 - name: Add prosody user to ssl-cert group
19
 - name: Add prosody user to ssl-cert group
20
   user: name=prosody group=ssl-cert
20
   user: name=prosody group=ssl-cert
21
 
21
 
22
+- name: Add cert postrenew task
23
+  copy: src=etc_letsencrypt_postrenew_prosody.sh dest=/etc/letsencrypt/postrenew/prosody.sh mode=0755
24
+
22
 - name: Create Prosody data directory
25
 - name: Create Prosody data directory
23
   file: state=directory path=/decrypted/prosody owner=prosody group=prosody
26
   file: state=directory path=/decrypted/prosody owner=prosody group=prosody
24
 
27
 

Loading…
Cancel
Save