prosody/tasks/firewall.yml

36 lines
838 B
YAML
Raw Normal View History

2021-03-14 11:00:16 +01:00
---
- name: '[Firewall] - Make sure that script directory exists'
file:
path: "{{ prosody_installer_plugin_path }}"
2021-03-14 11:00:16 +01:00
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 }}"
2021-03-14 11:00:16 +01:00
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 }}"
2021-03-14 11:00:16 +01:00
owner: root
group: prosody
mode: 0644
with_items:
- 'servers_blocklist.txt'
- 'users_blocklist.txt'
notify:
restart prosody