"AnsibleUndefinedVariable: 'overwrite_to_target' is undefined" in recipient_canonical_maps template
flatrocks opened this issue · 1 comments
flatrocks commented
When including this role with relaymail_overwrite_to: all
the run fails with this message:
failed: [vagrant1] (item=recipient_canonical_maps) => {"failed": true, "item": "recipient_canonical_maps", "msg": "AnsibleUndefinedVariable: 'overwrite_to_target' is undefined"}
I think I have tracked down the culprit to
ansible-role-relaymail/templates/recipient_canonical_maps, line 4:
/.+@.+/ {{ overwrite_to_target }}
It sure looks like this line should read:
/.+@.+/ {{ relaymail_overwrite_to_target }}
I made this mod locally and the install went as planned. However I'm no postfix expert, so I am not confident to propose this as a pull request.
Yannik commented
You are correct on all points. I have fixed this issue, thanks for your report!