Update main.yml

Allow custom user, group, and mode to be defined for template based files.