This commit is contained in:
parent
41f2e71836
commit
ebc37d8f37
@ -43,17 +43,16 @@
|
|||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0600
|
mode: 0600
|
||||||
register: sender_result
|
register: __sender_result
|
||||||
|
|
||||||
- name: Ensure sender_canonical.db exist
|
- name: Ensure sender_canonical.db exist
|
||||||
stat:
|
stat:
|
||||||
path: /etc/postfix/sender_canonical.db
|
path: /etc/postfix/sender_canonical.db
|
||||||
register: senderdb
|
register: __senderdb
|
||||||
|
|
||||||
- name: Hash sender_canoncial
|
- name: Hash sender_canoncial
|
||||||
command: "/usr/sbin/postmap hash:/etc/postfix/sender_canonical"
|
command: "/usr/sbin/postmap hash:/etc/postfix/sender_canonical"
|
||||||
when: not senderdb.stat.exists or sender_result.changed
|
when: not __senderdb.stat.exists or __sender_result.changed
|
||||||
register: senderdb_update
|
|
||||||
notify: __postfix_restart
|
notify: __postfix_restart
|
||||||
become: True
|
become: True
|
||||||
become_user: root
|
become_user: root
|
||||||
|
Loading…
Reference in New Issue
Block a user