diff options
author | Matthieu Saulnier <fantom@fedoraproject.org> | 2018-05-27 14:24:45 +0200 |
---|---|---|
committer | Matthieu Saulnier <fantom@fedoraproject.org> | 2018-05-27 14:24:45 +0200 |
commit | 12ac5be39b0dd4cf39dfcb905886a4bb691ee262 (patch) | |
tree | aac22bf4eca15f3bd7c7c0f0e60d46cdb81665df /roles | |
parent | 75e24da736b07c850621641c3271238f98a9ad6d (diff) | |
download | playbooks-ansible-12ac5be39b0dd4cf39dfcb905886a4bb691ee262.tar.gz playbooks-ansible-12ac5be39b0dd4cf39dfcb905886a4bb691ee262.tar.xz playbooks-ansible-12ac5be39b0dd4cf39dfcb905886a4bb691ee262.zip |
Split handler main file in mtaserver role
Diffstat (limited to 'roles')
-rw-r--r-- | roles/mtaserver/handlers/main.yml | 23 | ||||
-rw-r--r-- | roles/mtaserver/handlers/postfix.yml | 21 |
2 files changed, 22 insertions, 22 deletions
diff --git a/roles/mtaserver/handlers/main.yml b/roles/mtaserver/handlers/main.yml index 9992fb9..44df575 100644 --- a/roles/mtaserver/handlers/main.yml +++ b/roles/mtaserver/handlers/main.yml @@ -1,23 +1,2 @@ -- name: reload postfix - service: name=postfix state=reloaded - -- name: restart postfix - service: name=postfix state=restarted - -- name: aliasmap - command: /usr/bin/newaliases - notify: reload postfix - -- name: postmap - command: /usr/sbin/postmap /etc/postfix/mydestination_table /etc/postfix/network_table /etc/postfix/relay_recipients - notify: reload postfix - -- name: virtualmap - command: /usr/sbin/postmap /etc/postfix/virtual - notify: reload postfix - -- name: credentialmap - command: /usr/sbin/postmap /etc/postfix/credentials - notify: reload postfix - +- include: postfix.yml - include: systemd.yml diff --git a/roles/mtaserver/handlers/postfix.yml b/roles/mtaserver/handlers/postfix.yml new file mode 100644 index 0000000..87a6070 --- /dev/null +++ b/roles/mtaserver/handlers/postfix.yml @@ -0,0 +1,21 @@ +- name: reload postfix + service: name=postfix state=reloaded + +- name: restart postfix + service: name=postfix state=restarted + +- name: aliasmap + command: /usr/bin/newaliases + notify: reload postfix + +- name: postmap + command: /usr/sbin/postmap /etc/postfix/mydestination_table /etc/postfix/network_table /etc/postfix/relay_recipients + notify: reload postfix + +- name: virtualmap + command: /usr/sbin/postmap /etc/postfix/virtual + notify: reload postfix + +- name: credentialmap + command: /usr/sbin/postmap /etc/postfix/credentials + notify: reload postfix |