23
|
1 |
--- |
|
2 |
|
|
3 |
- name: install prosody |
|
4 |
become: yes |
|
5 |
apt: name="prosody" |
|
6 |
notify: restart prosody |
|
7 |
|
|
8 |
- name: configure prosody |
|
9 |
become: yes |
|
10 |
template: |
|
11 |
src: "prosody.cfg.lua.j2" |
|
12 |
dest: "/etc/prosody/conf.avail/{{prosody_vhost}}.cfg.lua" |
|
13 |
notify: restart prosody |
|
14 |
|
|
15 |
- name: install prosody site |
|
16 |
become: yes |
|
17 |
template: src="prosody.cfg.lua.j2" dest="/etc/prosody/conf.avail/{{prosody_vhost}}.cfg.lua" |
|
18 |
notify: restart prosody |
|
19 |
|
44
|
20 |
- name: copy ssl keys |
|
21 |
become: yes |
|
22 |
copy: |
|
23 |
src: "{{item}}" |
|
24 |
dest: "{{prosody_ssl_dir}}/" |
|
25 |
remote_src: yes |
|
26 |
mode: "0640" |
|
27 |
owner: "root" |
|
28 |
group: "prosody" |
|
29 |
notify: restart prosody |
|
30 |
loop: |
|
31 |
- "{{prosody_ssl_privkey_src}}" |
|
32 |
- "{{prosody_ssl_cert_src}}" |
|
33 |
|
23
|
34 |
- name: enable prosody site |
|
35 |
become: yes |
|
36 |
file: |
|
37 |
src: "/etc/prosody/conf.avail/{{prosody_vhost}}.cfg.lua" |
|
38 |
dest: "/etc/prosody/conf.d/{{prosody_vhost}}.cfg.lua" |
|
39 |
state: "link" |
|
40 |
notify: restart prosody |