# using get\_url with ansible 2.0.2 to download package

**URL:** <https://forum.ansible.com/t/using-get-url-with-ansible-2-0-2-to-download-package/21089>\
**Category:** Ansible Project\
**Created:** [April 7, 2016, 10:32am UTC](https://forum.ansible.com/t/using-get-url-with-ansible-2-0-2-to-download-package/21089 "2016-04-07T10:32:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![imed\_khaskhoussi](https://avatars.discourse-cdn.com/v4/letter/i/919ad9/32.png) [@imed\_khaskhoussi](https://forum.ansible.com/u/imed_khaskhoussi)\
**Post date:** [April 7, 2016, 10:32am UTC](https://forum.ansible.com/t/using-get-url-with-ansible-2-0-2-to-download-package/21089/1 "2016-04-07T10:32:23Z")

</div>

hello,i tried to download a package with get\_url ansible,but i have a problem.  
The url contain some variables so i wrote like this.

**- get\_url: url=[http://example.com/{{variable1}](http://example.com/%7B%7Bvariable1%7D)}/path/{{variable2}}.tar.gz dest=dest/to/path**  
But i couldn’t get the package.some help please.

---

<div class="post-metadata">

**Author:** ![ananta.c](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@ananta.c](https://forum.ansible.com/u/ananta.c)\
**Post date:** [April 12, 2016, 2:01am UTC](https://forum.ansible.com/t/using-get-url-with-ansible-2-0-2-to-download-package/21089/2 "2016-04-12T02:01:28Z")

</div>

check this task if it helps as reference  
[https://github.com/ac427/my\_cm/blob/master/ansible/roles/ansible\_jenkins\_role/tasks/jenkins\_CentOS.yml](https://github.com/ac427/my_cm/blob/master/ansible/roles/ansible_jenkins_role/tasks/jenkins_CentOS.yml)
