# Download files

**URL:** <https://forum.ansible.com/t/download-files/24245>\
**Category:** Ansible Project\
**Created:** [April 19, 2017, 8:51am UTC](https://forum.ansible.com/t/download-files/24245 "2017-04-19T08:51:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![groupfiles14](https://avatars.discourse-cdn.com/v4/letter/g/54ee81/32.png) [@groupfiles14](https://forum.ansible.com/u/groupfiles14)\
**Post date:** [April 19, 2017, 8:51am UTC](https://forum.ansible.com/t/download-files/24245/1 "2017-04-19T08:51:07Z")

</div>

Hello,  
i have few zip files in a url like 1.zip, 1.md5.txt, 2.zip, 2.md5.txt , if there is a change in the zip file the corresponding md5.txt entry will be changed, how can i check this condition and download only the zip file when the content of md5.txt is changed.

---

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [April 19, 2017, 12:37pm UTC](https://forum.ansible.com/t/download-files/24245/2 "2017-04-19T12:37:15Z")

</div>

Use the stat or wim\_stat nodules perhaps.

---

<div class="post-metadata">

**Author:** ![groupfiles14](https://avatars.discourse-cdn.com/v4/letter/g/54ee81/32.png) [@groupfiles14](https://forum.ansible.com/u/groupfiles14)\
**Post date:** [April 19, 2017, 12:41pm UTC](https://forum.ansible.com/t/download-files/24245/3 "2017-04-19T12:41:08Z")

</div>

can you please post an example, we need to read md5.txt and download corresponding zip file
