# win\_get\_url and win\_msi - file downloaded and installed even when not changed

**URL:** <https://forum.ansible.com/t/win-get-url-and-win-msi-file-downloaded-and-installed-even-when-not-changed/18395>\
**Category:** Ansible Project\
**Created:** [June 3, 2015, 3:36pm UTC](https://forum.ansible.com/t/win-get-url-and-win-msi-file-downloaded-and-installed-even-when-not-changed/18395 "2015-06-03T15:36:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cosbug](https://avatars.discourse-cdn.com/v4/letter/c/13edae/32.png) [@cosbug](https://forum.ansible.com/u/cosbug)\
**Post date:** [June 3, 2015, 3:36pm UTC](https://forum.ansible.com/t/win-get-url-and-win-msi-file-downloaded-and-installed-even-when-not-changed/18395/1 "2015-06-03T15:36:34Z")

</div>

Hi All,

I’m using “win\_get\_url” module to download an MSI package and then “win\_msi” to install it.  
It turns out that every time I run a playbook both tasks return status “changed” even the file was previously downloaded and installed in the preceding run.

Am I right that these modules do not support idempotence yet?

I was expected the same behaviour as in Linux (like yum, etc) - they do not report/change if nothing has changed in system from previous run.

Could you please advise?

Kind Regards,  
Constantin

---

<div class="post-metadata">

**Author:** ![Trond\_Hindenes](https://avatars.discourse-cdn.com/v4/letter/t/96bed5/32.png) [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Post date:** [June 3, 2015, 7:13pm UTC](https://forum.ansible.com/t/win-get-url-and-win-msi-file-downloaded-and-installed-even-when-not-changed/18395/2 "2015-06-03T19:13:00Z")

</div>

None of those modules perform any checking on wether the file is already downloaded /msi is already installed, so the behaviour you see is per design.

There is a win\_package available which is built on the same code as the “Package” DSC resource and more robust. I thought there was a PR for that one, but seems that it got lost in the module restructuring. Anyways, you can find it here:

[https://github.com/ansible/ansible/pull/8860](https://github.com/ansible/ansible/pull/8860)

---

<div class="post-metadata">

**Author:** ![cosbug](https://avatars.discourse-cdn.com/v4/letter/c/13edae/32.png) [@cosbug](https://forum.ansible.com/u/cosbug)\
**Post date:** [June 4, 2015, 8:54am UTC](https://forum.ansible.com/t/win-get-url-and-win-msi-file-downloaded-and-installed-even-when-not-changed/18395/3 "2015-06-04T08:54:49Z")

</div>

Thanks Trond,

Just replaced “win\_msi” with “win\_package” in task and it works fine.

Kind Regards,  
Constantin

---

<div class="post-metadata">

**Author:** ![Trond\_Hindenes](https://avatars.discourse-cdn.com/v4/letter/t/96bed5/32.png) [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Post date:** [June 4, 2015, 8:48pm UTC](https://forum.ansible.com/t/win-get-url-and-win-msi-file-downloaded-and-installed-even-when-not-changed/18395/4 "2015-06-04T20:48:20Z")

</div>

Great! I’ll re-submit the PR to get it included into modules\_extra.
