diff --git a/tasks/configure_ufw.yml b/tasks/configure_ufw.yml new file mode 100644 index 0000000..fcf412c --- /dev/null +++ b/tasks/configure_ufw.yml @@ -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 diff --git a/tasks/main.yml b/tasks/main.yml index 30a7806..ecc750e 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,5 +1,9 @@ --- - name: Ensure installation of backup mail services include_tasks: install.yml + - name: Ensure configuration of backup mail services include_tasks: configure.yml + +- name: Ensure configuration of backup mail services firewall + include_tasks: configure_ufw.yml