aboutsummaryrefslogtreecommitdiff
path: root/roles/postgrey/tasks/main.yml
blob: 7c0caa70be8c4757943f8523abe174e466bf10f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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