get_url ... donlwoading html, nt raw content

5 views
Skip to first unread message

dulh...@mailbox.org

unread,
Jun 5, 2023, 6:26:24 AM6/5/23
to ansible...@googlegroups.com
I want to download a .j2 file from a local bitbucket repository to a local folder.
==============================================================

- name: download artifacts - fetch template from repo
delegate_to: localhost
ansible.builtin.get_url:
url: "https://devtools/bitbucket/projects/EAKTEMV/repos/infrastruktur/raw/postgres/templates/{{ item }}"
dest: "../temp/{{ item }}"
loop:
- create_user_db_schema.sql.j2

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

- 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?

Dick Visser

unread,
Jun 5, 2023, 9:37:19 AM6/5/23
to ansible...@googlegroups.com
You seem to be fetching the wrong url 



--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/348297224.565726.1685960766791%40office.mailbox.org.
--
Sent from Gmail Mobile
Reply all
Reply to author
Forward
0 new messages