👌 prosody: Use plain file instead of template

No need to run the template engine, if no replacements are done.

Suggested-by: David Kilias <dkdent@netz39.de>
This commit is contained in:
Alexander Dahl 2022-12-20 09:33:34 +01:00 committed by Alexander Dahl
parent 923dfb49df
commit fa811dd787
3 changed files with 6 additions and 6 deletions

View file

@ -132,8 +132,8 @@
mode: 0644 mode: 0644
- name: Ensure prosody localhost config file is in place - name: Ensure prosody localhost config file is in place
ansible.builtin.template: ansible.builtin.copy:
src: "templates/prosody/localhost.cfg.lua.j2" src: "files/prosody/localhost.cfg.lua"
dest: "{{ prosody_data_dir }}/etc/prosody/conf.avail/localhost.cfg.lua" dest: "{{ prosody_data_dir }}/etc/prosody/conf.avail/localhost.cfg.lua"
mode: 0644 mode: 0644
@ -143,13 +143,13 @@
dest: "{{ prosody_data_dir }}/etc/prosody/conf.d/localhost.cfg.lua" dest: "{{ prosody_data_dir }}/etc/prosody/conf.d/localhost.cfg.lua"
state: link state: link
- name: "Ensure prosody {{ prosody_domain_name }} config file is in place" - name: "Ensure prosody config file is in place: {{ prosody_domain_name }}"
ansible.builtin.template: ansible.builtin.copy:
src: "templates/prosody/{{ prosody_domain_name }}.cfg.lua.j2" src: "files/prosody/{{ prosody_domain_name }}.cfg.lua"
dest: "{{ prosody_data_dir }}/etc/prosody/conf.avail/{{ prosody_domain_name }}.cfg.lua" dest: "{{ prosody_data_dir }}/etc/prosody/conf.avail/{{ prosody_domain_name }}.cfg.lua"
mode: 0644 mode: 0644
- name: "Ensure prosody {{ prosody_domain_name }} config symlink exists" - name: "Ensure prosody config symlink exists: {{ prosody_domain_name }}"
ansible.builtin.file: ansible.builtin.file:
src: "../conf.avail/{{ prosody_domain_name }}.cfg.lua" src: "../conf.avail/{{ prosody_domain_name }}.cfg.lua"
dest: "{{ prosody_data_dir }}/etc/prosody/conf.d/{{ prosody_domain_name }}.cfg.lua" dest: "{{ prosody_data_dir }}/etc/prosody/conf.d/{{ prosody_domain_name }}.cfg.lua"