From dec948328980d140646b65450d6949a02a3dbd5d Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Thu, 27 Oct 2022 09:41:17 +0300 Subject: [PATCH] Add firewall rules --- tasks/configure_ufw.yml | 13 +++++++++++++ tasks/main.yml | 4 ++++ 2 files changed, 17 insertions(+) create mode 100644 tasks/configure_ufw.yml 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