On Mon, 5 Jun 2023 at 12:26, dulhaver via Ansible Project < ansible-project@googlegroups.com> wrote:
> 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? 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-project+unsubscr...@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 -- 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-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAF8BbLbgATVgrnTBAM7qbQOJfmYxec1jwukZYqbv0Uyyq_j%3DQQ%40mail.gmail.com.