Add firewall rules

This commit is contained in:
Antonio J. Delgado 2022-10-27 09:41:17 +03:00
parent ab3f761b1c
commit dec9483289
2 changed files with 17 additions and 0 deletions

13
tasks/configure_ufw.yml Normal file
View file

@ -0,0 +1,13 @@
---
- name: Allow traffic to Postfix
ufw:
rule: allow
name: Postfix
- name: Allow traffic to Postfix SMTPS
ufw:
rule: allow
name: Postfix SMTPS
- name: Allow traffic to Postfix Submission
ufw:
rule: allow
name: Postfix Submission

View file

@ -1,5 +1,9 @@
--- ---
- name: Ensure installation of backup mail services - name: Ensure installation of backup mail services
include_tasks: install.yml include_tasks: install.yml
- name: Ensure configuration of backup mail services - name: Ensure configuration of backup mail services
include_tasks: configure.yml include_tasks: configure.yml
- name: Ensure configuration of backup mail services firewall
include_tasks: configure_ufw.yml