From 724d877995dfcc10c462a18dcb4ea6c8b60c2d03 Mon Sep 17 00:00:00 2001 From: Sam Chudnick Date: Sun, 2 Jul 2023 19:04:30 -0400 Subject: initial commit --- roles/postgrey/tasks/main.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 roles/postgrey/tasks/main.yml (limited to 'roles/postgrey/tasks') 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 @@ +- 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 -- cgit v1.2.3