305:afe29fdf065f
Anton Shestakov <av6@dwimlabs.net>, Thu, 28 Jun 2018 22:43:17 +0800
provision: use Prosody 0.10 from upstream repo

next change 306:6092d5a5668b
previous change 288:845780bce8cd

contrib/provision/roles/prosody/tasks/main.yml

Permissions: -rw-r--r--

Other formats: Feeds:
---
- include: repository.yml
- name: Install server packages
apt:
pkg: '{{ item }}'
state: present
with_items:
- mercurial # for extra modules
- prosody
- lua-sec
tags: [packages]
- include: extra-modules.yml
become: yes
become_user: prosody
- name: Ensure config directories exist
file:
path: /etc/prosody/{{ item }}
state: directory
owner: root
group: prosody
mode: 0754
with_items:
- conf.avail
- conf.d
- name: Remove default VirtualHosts
replace:
dest: /etc/prosody/prosody.cfg.lua
regexp: '(?ms)^----------- Virtual hosts -----------$.*'
replace: ''
- name: Add Include line
lineinfile:
dest: /etc/prosody/prosody.cfg.lua
line: 'Include "conf.d/*.cfg.lua"'
- name: Disable localhost VirtualHost
file:
path: /etc/prosody/conf.d/localhost.cfg.lua
state: absent
notify:
- restart prosody
- name: Open ports
ufw:
rule: allow
port: xmpp-client
proto: tcp
when: ansible_virtualization_type == "virtualbox"
tags: [ufw]
...