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 On Wednesday, June 3, 2015 at 5:36:34 PM UTC+2, [email protected] wrote: > 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 > > -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/c25d04fd-d597-493f-834a-d080ce463b52%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
