main.yml 725 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
- name: install packages
  package:
    name: "postgrey"
    state: "present"

- name: install local whitelist template
  template:
    src: "whitelist_clients.local.j2"
    dest: "/etc/postfix/postgrey_whitelist_clients.local"
    owner: "root"
    group: "root"
    mode: 0644
  notify:
    - restart postgrey

- name: create service unit override path
  file:
    path: "/etc/systemd/system/postgrey.service.d/"
    state: "directory"
    owner: "root"
    group: "root"
22
    mode: 0755
23
24
25
26
27
28
29
30
31
32

- name: install service unit override file
  template:
    src: "service-override.j2"
    dest: "/etc/systemd/system/postgrey.service.d/override.conf"
    owner: "root"
    group: "root"
    mode: 0644
  notify:
    - restart postgrey