322:7dfdf32e8577
Anton Shestakov <av6@dwimlabs.net>, Sat, 14 Jul 2018 20:23:13 +0800
index: authorizing contact also adds it to the roster Maybe there are cases when this doesn't make sense, but so far this looks like the right thing to do.

previous change 306:6092d5a5668b

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-bitop
- 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]
...