--- - name: '[Firewall] - Make sure that script directory exists' file: path: "{{ prosody_installer_plugin_path }}" state: directory owner: root group: prosody mode: 0755 - name: '[Firewall] - Deploy Firewall scripts' template: src: "etc/prosody/custom_scripts/{{ item }}.j2" dest: "{{ prosody_installer_plugin_path }}/{{ item }}" owner: root group: prosody mode: 0644 with_items: - 'servers_blocklist.pfw' - 'users_blocklist.pfw' notify: restart prosody - name: '[Firewall] - Deploy Firewall lists' template: src: "etc/prosody/custom_scripts/{{ item }}.j2" dest: "{{ prosody_installer_plugin_path }}/{{ item }}" owner: root group: prosody mode: 0644 with_items: - 'servers_blocklist.txt' - 'users_blocklist.txt' notify: restart prosody