boh, ha smesso di andare... non ci capisco un cazzo
This commit is contained in:
parent
2d82ebe140
commit
4906a4b734
8 changed files with 79 additions and 22 deletions
20
roles/prosody/tasks/main.yml
Normal file
20
roles/prosody/tasks/main.yml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue