diff options
author | Sam Chudnick <sam@chudnick.com> | 2023-07-02 19:04:30 -0400 |
---|---|---|
committer | Sam Chudnick <sam@chudnick.com> | 2023-07-02 19:04:30 -0400 |
commit | 724d877995dfcc10c462a18dcb4ea6c8b60c2d03 (patch) | |
tree | 270537b8fca585717c1ffa7708e492593f7b2ed5 /roles/postgrey/tasks |
initial commit
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 | ||