38 lines
906 B
YAML
Raw Normal View History

2021-12-01 19:13:34 +01:00
---
- name: Install prosody
2024-07-22 10:00:12 +02:00
package:
2021-12-01 19:13:34 +01:00
name:
- prosody
- lua-ldap
- lua-cyrussasl
2024-07-22 10:00:12 +02:00
- lua-cjson
- lua-basexx
- lua-luaossl
- libjwt
2021-12-01 19:13:34 +01:00
tags: prosody
- name: Create systemd unit snippet dir
file: path=/etc/systemd/system/prosody.service.d state=directory
tags: prosody
2024-07-22 10:00:12 +02:00
- name: Install remote modules
2021-12-01 19:13:34 +01:00
get_url:
url: "{{ item.url | default('https://raw.githubusercontent.com/prosody-modules/' ~ item.name ~ '/master/' ~ item.name ~ '.lua') }}"
dest: /opt/prosody/modules/{{ item.name }}.lua
loop: "{{ prosody_modules }}"
notify: restart prosody
tags: prosody
- name: Remove useless unit override
file: path=/etc/systemd/system/prosody.service.d/99-ansible.conf state=absent
register: prosody_unit
notify: restart prosody
tags: prosody
- name: Reload systemd
systemd: daemon_reload=True
when: prosody_unit.changed
tags: prosody