From 14465fc9602ec96fc9d4e48bc0120e75415e1e26 Mon Sep 17 00:00:00 2001 From: Matthew Fennell Date: Sun, 7 Jan 2024 12:28:15 +0000 Subject: Install prosody config file This commit adds a prosody configuration file that can be installed on the remote hosts. This lets me make the configuration locally, deploy it to staging environments, and then to prod, without having to directly login to the hosts. --- playbook.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'playbook.yaml') diff --git a/playbook.yaml b/playbook.yaml index 503d3ae..b396d21 100644 --- a/playbook.yaml +++ b/playbook.yaml @@ -26,3 +26,17 @@ - WWW - XMPP become: true + - name: Ensure prosody is configured + ansible.builtin.copy: + src: "{{ playbook_dir }}/files/prosody.cfg.lua" + dest: /etc/prosody/prosody.cfg.lua + owner: root + group: root + mode: "0640" + become: true + - name: Ensure prosody config is reloaded + ansible.builtin.service: + name: prosody + enabled: true + state: reloaded + become: true -- cgit v1.2.3