--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/contrib/provision/roles/prosody/files/etc/apt/preferences.d/prosody Thu Jun 28 22:43:17 2018 +0800
--- a/contrib/provision/roles/prosody/tasks/main.yml Thu Jun 28 22:36:32 2018 +0800
+++ b/contrib/provision/roles/prosody/tasks/main.yml Thu Jun 28 22:43:17 2018 +0800
+- include: repository.yml
- name: Install server packages
- mercurial # for extra modules
-- name: Work around default config bug
+- name: Ensure config directories exist
- src: ../../ssl/certs/ssl-cert-snakeoil.pem
- dest: /etc/prosody/certs/localhost.crt
+ path: /etc/prosody/{{ item }}
+- name: Remove default VirtualHosts
+ dest: /etc/prosody/prosody.cfg.lua
+ regexp: '(?ms)^----------- Virtual hosts -----------$.*'
+- name: Add Include line
+ dest: /etc/prosody/prosody.cfg.lua
+ line: 'Include "conf.d/*.cfg.lua"'
- name: Disable localhost VirtualHost
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/contrib/provision/roles/prosody/tasks/repository.yml Thu Jun 28 22:43:17 2018 +0800
+ url: https://prosody.im/files/prosody-debian-packages.key
+- name: Add Prosody repository
+ repo: 'deb http://packages.prosody.im/debian {{ ansible_lsb.codename }} main'
+ src: etc/apt/preferences.d/prosody
+ dest: /etc/apt/preferences.d/prosody