diff options
Diffstat (limited to 'roles/postfix/handlers')
-rw-r--r-- | roles/postfix/handlers/main.yml | 12 |
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 |