diff options
Diffstat (limited to 'roles/postgrey/tasks')
-rw-r--r-- | roles/postgrey/tasks/main.yml | 24 |
1 files changed, 24 insertions, 0 deletions
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 | ||