get_url ... donlwoading html, nt raw content

I want to download a .j2 file from a local bitbucket repository to a local folder.

I want to download a .j2 file from a local bitbucket repository to a local folder.

==============================================================

  • the TASK runs fine
  • there is the raw file under the url
  • a file named ‘create_user_db_schema.sql.j2’ is being downloaded

contenst of the file is the html of the website rather then the raw .j2 file though.

What am I doing wrong?

You seem to be fetching the wrong url