boh, ha smesso di andare... non ci capisco un cazzo

This commit is contained in:
Freek Kettone 2025-09-03 18:13:04 +02:00
parent 2d82ebe140
commit 4906a4b734
8 changed files with 79 additions and 22 deletions

View file

@ -0,0 +1,4 @@
prosody_domain: "xmpp.local"
prosody_admin: "admin@{{ prosody_domain }}"
prosody_packages:
- prosody

View file

@ -0,0 +1,4 @@
- name: Restart Prosody
ansible.builtin.systemd:
name: prosody
state: restarted

View file

@ -0,0 +1,20 @@
- name: Ensure Prosody is installed
ansible.builtin.apt:
name: "{{ prosody_package }}"
state: present
update_cache: yes
- name: Deploy Prosody config
ansible.builtin.template:
src: prosody.cfg.lua.j2
dest: /etc/prosody/prosody.cfg.lua
owner: root
group: root
mode: "0644"
notify: Restart Prosody
- name: Ensure Prosody is up and running
ansible.builtin.systemd:
name: prosody
state: started
enabled: yes

View file

@ -0,0 +1,29 @@
admins = { "{{ prosody_admin }}" }
modules_enabled = {
"roster"; -- gestione contatti
"saslauth"; -- autenticazione
"tls"; -- cifratura
"dialback";
"disco"; -- service discovery
"carbons"; -- messaggi su più client
"pep"; -- presence & personal events
"private"; -- dati privati
"vcard4"; "vcard_legacy"; -- profili
"version"; -- risponde alla query version
"uptime";
"time"; -- orologio
"ping"; -- keepalive
"register"; -- permetti registrazione utenti
}
allow_registration = true
ssl = {
key = "/etc/prosody/certs/{{ prosody_domain }}.key";
certificate = "/etc/prosody/certs/{{ prosody_domain }}.crt";
}
VirtualHost "{{ prosody_domain }}"
Component "conference.{{ prosody_domain }}" "muc"