From 724d877995dfcc10c462a18dcb4ea6c8b60c2d03 Mon Sep 17 00:00:00 2001 From: Sam Chudnick Date: Sun, 2 Jul 2023 19:04:30 -0400 Subject: initial commit --- roles/postgrey/defaults/main.yml | 0 roles/postgrey/files/postgrey | 2 ++ roles/postgrey/handlers/main.yml | 0 roles/postgrey/tasks/main.yml | 24 ++++++++++++++++++++++++ 4 files changed, 26 insertions(+) create mode 100644 roles/postgrey/defaults/main.yml create mode 100644 roles/postgrey/files/postgrey create mode 100644 roles/postgrey/handlers/main.yml create mode 100644 roles/postgrey/tasks/main.yml (limited to 'roles/postgrey') diff --git a/roles/postgrey/defaults/main.yml b/roles/postgrey/defaults/main.yml new file mode 100644 index 0000000..e69de29 diff --git a/roles/postgrey/files/postgrey b/roles/postgrey/files/postgrey new file mode 100644 index 0000000..d9a79d5 --- /dev/null +++ b/roles/postgrey/files/postgrey @@ -0,0 +1,2 @@ +POSTGREY_OPTS="--unix=/var/spool/postfix/private/postgrey --privacy" +POSTGREY_TEXT="Greylisted - see https://www.greylisting.org" diff --git a/roles/postgrey/handlers/main.yml b/roles/postgrey/handlers/main.yml new file mode 100644 index 0000000..e69de29 diff --git a/roles/postgrey/tasks/main.yml b/roles/postgrey/tasks/main.yml new file mode 100644 index 0000000..7c0caa7 --- /dev/null +++ b/roles/postgrey/tasks/main.yml @@ -0,0 +1,24 @@ +- name: install packages + package: + name: + - postgrey + state: latest + +- name: deploy configuration + copy: + src: postgrey + dest: /etc/default/postgrey + owner: root + group: root + mode: '0644' + +- name: enable postgrey + systemd: + enabled: yes + masked: no + name: postgrey + +- name: restart postgrey + service: + name: postgrey + state: restarted -- cgit v1.2.3