Remove this... and place the replace of `%%SOURCE%%` into the for loop below, with the `source_file` variable you defined. In that way you can also remove `source = 'file=\'%%SOURCE_FILE%%\''` above. It will be more clear what is going on.

In any case, I hope to move this to jinja as soon as your other nic_profile PR is merged.