Commit 7c868b0d authored by Mattia Rizzolo's avatar Mattia Rizzolo

postfix: fix handlers

Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mapreri@ubuntu.com>
parent 9da8513f
......@@ -2,11 +2,11 @@
- name: newaliases
command: newaliases
- name: hash
- name: postfix.hash
command: postmap hash:/etc/postfix/{{ item }}
with_items: "{{ hash_tables }}"
# keep this last, so it'll be executed last
- name: restart postfix
service: name=postfix@- state=restarted
- name: postfix.restart
service: name=postfix state=restarted
......@@ -10,17 +10,17 @@
- name: Install postfix master conf
template: src=master.cf dest=/etc/postfix/master.cf owner=root group=root mode=0644
notify: restart postfix
notify: postfix.restart
- name: Install postfix main conf
template: src=main.cf dest=/etc/postfix/main.cf owner=root group=root mode=0644
notify: restart postfix
notify: postfix.restart
- name: Install several postfix hash tables
template: src={{ item }} dest=/etc/postfix/{{ item }} owner=root group=root mode=0644
notify:
- hash
- restart postfix
- postfix.hash
- postfix.restart
with_items: "{{ hash_tables }}"
- name: Install the aliases file
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment