summaryrefslogtreecommitdiff
path: root/roles/postfix/handlers
diff options
context:
space:
mode:
authorDmitry Ilvokhin <d@ilvokhin.com>2024-04-06 19:53:25 +0100
committerDmitry Ilvokhin <d@ilvokhin.com>2024-04-06 19:53:25 +0100
commita5105a330af202e5880c004d7c997882cdb96681 (patch)
tree70fb2bc74668470b90b10816836b4b3d72380993 /roles/postfix/handlers
parent8cce1ff3e54c89dbfb80851cf51dfbb7232f2d76 (diff)
downloadinfra-a5105a330af202e5880c004d7c997882cdb96681.tar.gz
infra-a5105a330af202e5880c004d7c997882cdb96681.tar.bz2
infra-a5105a330af202e5880c004d7c997882cdb96681.zip
Add postfix role
Diffstat (limited to 'roles/postfix/handlers')
-rw-r--r--roles/postfix/handlers/main.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/roles/postfix/handlers/main.yml b/roles/postfix/handlers/main.yml
new file mode 100644
index 0000000..62be72c
--- /dev/null
+++ b/roles/postfix/handlers/main.yml
@@ -0,0 +1,12 @@
+- name: Reload postfix
+ ansible.builtin.service:
+ name: postfix
+ state: reloaded
+
+- name: Check postfix
+ ansible.builtin.command: postfix check
+
+- name: Update postfix lookup tables
+ ansible.builtin.command: postmap {{ item }}
+ with_items:
+ - /etc/postfix/virtual