Преглед на файлове

Added postfix restart handler

merge-requests/1/merge
Christoph Haas преди 10 години
родител
ревизия
7944b69f7d
променени са 2 файла, в които са добавени 8 реда и са изтрити 0 реда
  1. +4
    -0
      roles/ispmail-postfix/handlers/main.yml
  2. +4
    -0
      roles/ispmail-postfix/tasks/main.yml

+ 4
- 0
roles/ispmail-postfix/handlers/main.yml Целия файл

@@ -0,0 +1,4 @@
---
- name: restart postfix
service: name=postfix state=restarted


+ 4
- 0
roles/ispmail-postfix/tasks/main.yml Целия файл

@@ -1,21 +1,25 @@
---
- name: define Postfix virtual mailbox domain mapping
template: src=mysql-virtual-mailbox-domains.cf.j2 dest=/etc/postfix/mysql-virtual-mailbox-domains.cf
notify: restart postfix
- name: tell Postfix to use the virtual mailbox domain mapping
shell: postconf virtual_mailbox_domains=mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf

- name: define Postfix virtual mailbox mapping
template: src=mysql-virtual-mailbox-maps.cf.j2 dest=/etc/postfix/mysql-virtual-mailbox-maps.cf
notify: restart postfix
- name: tell Postfix to use the virtual mailbox mapping
shell: postconf virtual_mailbox_maps=mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf

- name: define Postfix virtual alias mapping
template: src=mysql-virtual-alias-maps.cf.j2 dest=/etc/postfix/mysql-virtual-alias-maps.cf
notify: restart postfix
- name: tell Postfix to use the virtual alias mapping
shell: postconf virtual_alias_maps=mysql:/etc/postfix/mysql-virtual-alias-maps.cf

- name: define Postfix email-to-email mapping (required for catchall domains)
template: src=mysql-email2email.cf.j2 dest=/etc/postfix/mysql-email2email.cf
notify: restart postfix
- name: tell Postfix to use the email-to-email mapping
shell: postconf virtual_alias_maps=mysql:/etc/postfix/mysql-virtual-alias-maps.cf,mysql:/etc/postfix/mysql-email2email.cf



Зареждане…
Отказ
Запис