Permissions: -rw-r--r--
---- 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]...