remote_src and template_host for template module not working for me

Fix the truthy. See
https://docs.ansible.com/ansible/latest/modules/fetch_module.html#parameters

          flat: true

HTH,

  -vlado