# Can url path in get\_url be build dynamically?

**URL:** <https://forum.ansible.com/t/can-url-path-in-get-url-be-build-dynamically/30939>\
**Category:** Ansible Project\
**Created:** [August 2, 2019, 2:16pm UTC](https://forum.ansible.com/t/can-url-path-in-get-url-be-build-dynamically/30939 "2019-08-02T14:16:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kenneth\_Wong](https://avatars.discourse-cdn.com/v4/letter/k/f04885/32.png) [@Kenneth\_Wong](https://forum.ansible.com/u/Kenneth_Wong)\
**Post date:** [August 2, 2019, 2:16pm UTC](https://forum.ansible.com/t/can-url-path-in-get-url-be-build-dynamically/30939/1 "2019-08-02T14:16:53Z")

</div>

The following playbook will failed but exchanged with commented out line then it would work.  
Is there a way to evaluate the url string in get\_url?

---

<div class="post-metadata">

**Author:** ![Joacim\_Martensson](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/joacim_martensson/32/4026_2.png) [@Joacim\_Martensson](https://forum.ansible.com/u/Joacim_Martensson)\
**Post date:** [August 3, 2019, 10:24am UTC](https://forum.ansible.com/t/can-url-path-in-get-url-be-build-dynamically/30939/2 "2019-08-03T10:24:06Z")

</div>

Try using Ansible facts instead

url: [https://github.com/docker/compose/releases/download/1.24.1/docker-compose-](https://github.com/docker/compose/releases/download/1.24.1/docker-compose-){{ ansible\_system }}-{{ ansible\_architecture }}

---

<div class="post-metadata">

**Author:** ![Kenneth\_Wong](https://avatars.discourse-cdn.com/v4/letter/k/f04885/32.png) [@Kenneth\_Wong](https://forum.ansible.com/u/Kenneth_Wong)\
**Post date:** [August 3, 2019, 6:32pm UTC](https://forum.ansible.com/t/can-url-path-in-get-url-be-build-dynamically/30939/3 "2019-08-03T18:32:31Z")

</div>

That worked great. Thank you.
