Add firewall rules
This commit is contained in:
parent
ab3f761b1c
commit
dec9483289
2 changed files with 17 additions and 0 deletions
13
tasks/configure_ufw.yml
Normal file
13
tasks/configure_ufw.yml
Normal 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
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue