aboutsummaryrefslogtreecommitdiff
path: root/roles/postgrey
diff options
context:
space:
mode:
authorSam Chudnick <sam@chudnick.com>2023-07-02 19:04:30 -0400
committerSam Chudnick <sam@chudnick.com>2023-07-02 19:04:30 -0400
commit724d877995dfcc10c462a18dcb4ea6c8b60c2d03 (patch)
tree270537b8fca585717c1ffa7708e492593f7b2ed5 /roles/postgrey
initial commit
Diffstat (limited to 'roles/postgrey')
-rw-r--r--roles/postgrey/defaults/main.yml0
-rw-r--r--roles/postgrey/files/postgrey2
-rw-r--r--roles/postgrey/handlers/main.yml0
-rw-r--r--roles/postgrey/tasks/main.yml24
4 files changed, 26 insertions, 0 deletions
diff --git a/roles/postgrey/defaults/main.yml b/roles/postgrey/defaults/main.yml
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/roles/postgrey/defaults/main.yml
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 @@
1POSTGREY_OPTS="--unix=/var/spool/postfix/private/postgrey --privacy"
2POSTGREY_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
--- /dev/null
+++ b/roles/postgrey/handlers/main.yml
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 @@
1- name: install packages
2 package:
3 name:
4 - postgrey
5 state: latest
6
7- name: deploy configuration
8 copy:
9 src: postgrey
10 dest: /etc/default/postgrey
11 owner: root
12 group: root
13 mode: '0644'
14
15- name: enable postgrey
16 systemd:
17 enabled: yes
18 masked: no
19 name: postgrey
20
21- name: restart postgrey
22 service:
23 name: postgrey
24 state: restarted