create transport map - all lines the same but one

Hi,

I have a postfix transport table on all the mailservers.
The file is pretty the same, but the line pointing the the very server this file is on, is deactivated (by comment or by deleting).

What would be the sanest way to build this in ansible?

A template would be one option, but there must be an if condition to each line, which seems a lot of overhead to me.

Marc

use template and generate the lines, with a single IF that skips ansible_hostname or ansible_fqdn (from facts).