diff options
author | Matthew Fennell <matthew@fennell.dev> | 2024-01-07 12:28:15 +0000 |
---|---|---|
committer | Matthew Fennell <matthew@fennell.dev> | 2024-01-07 12:28:15 +0000 |
commit | 14465fc9602ec96fc9d4e48bc0120e75415e1e26 (patch) | |
tree | 4665e62cf54080f00b5b1ed3a49fb4632e766654 /playbook.yaml | |
parent | 71e36164cae64494cdb91f537d65821c8e2e00f8 (diff) |
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.
Diffstat (limited to 'playbook.yaml')
-rw-r--r-- | playbook.yaml | 14 |
1 files changed, 14 insertions, 0 deletions
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 |