If run the playbook with this:
postfix_sender_canonical_maps:
- sender: "root"
rewrite: "root@email.com"
and then run it again with a change in postfix_sender_canonical_maps:
postfix_sender_canonical_maps:
- sender: "postmaster"
rewrite: "postmaster@email.com"
the postmap command is not launch again and and /etc/postfix/postfix_sender_canonical_maps.db not updated with new or modified entries.
In Postfix logs we can also see
warning: database /etc/postfix/sender_canonical_maps.db is older than source file /etc/postfix/sender_canonical_maps
If run the playbook with this:
and then run it again with a change in
postfix_sender_canonical_maps:the
postmapcommand is not launch again and and/etc/postfix/postfix_sender_canonical_maps.dbnot updated with new or modified entries.In Postfix logs we can also see