# win\_template always changing?

**URL:** <https://forum.ansible.com/t/win-template-always-changing/20704>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [February 29, 2016, 11:39am UTC](https://forum.ansible.com/t/win-template-always-changing/20704 "2016-02-29T11:39:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_Bennett](https://avatars.discourse-cdn.com/v4/letter/c/e19adc/32.png) [@Chris\_Bennett](https://forum.ansible.com/u/Chris_Bennett)\
**Post date:** [February 29, 2016, 11:39am UTC](https://forum.ansible.com/t/win-template-always-changing/20704/1 "2016-02-29T11:39:22Z")

</div>

Hi there,

I've just starting hitting some Windows hosts with Ansible & winrm and  
when I use the win\_template module, it changes every run:

conf:

---

<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:** [February 29, 2016, 5:05pm UTC](https://forum.ansible.com/t/win-template-always-changing/20704/2 "2016-02-29T17:05:28Z")

</div>

Hi I have noticed this behaviour when running the windows integration tests. As far as I can tell it is something that has started happening relatively recently.  
What version of ansible are you using?

Many thanks,

Jon

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [March 1, 2016, 5:26am UTC](https://forum.ansible.com/t/win-template-always-changing/20704/3 "2016-03-01T05:26:30Z")

</div>

the way checksums are calculated on the unix side had changes and they seem to have affected the windows side also, mdavis recently made an update to compensate for that, please check against current devel to see if the problem persists.

---

<div class="post-metadata">

**Author:** ![Chris\_Bennett](https://avatars.discourse-cdn.com/v4/letter/c/e19adc/32.png) [@Chris\_Bennett](https://forum.ansible.com/u/Chris_Bennett)\
**Post date:** [March 1, 2016, 10:24am UTC](https://forum.ansible.com/t/win-template-always-changing/20704/4 "2016-03-01T10:24:54Z")

</div>

Hi Jon/Brian,

I'm running devel. Performed a pull & retried but still seeing a  
change in the file.

Regards,

Chris

---

<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:** [March 1, 2016, 11:34am UTC](https://forum.ansible.com/t/win-template-always-changing/20704/5 "2016-03-01T11:34:55Z")

</div>

Chris,  
Thanks for testing.  
Did you also update to latest devel of the submodule project?  
Jon

---

<div class="post-metadata">

**Author:** ![Chris\_Bennett](https://avatars.discourse-cdn.com/v4/letter/c/e19adc/32.png) [@Chris\_Bennett](https://forum.ansible.com/u/Chris_Bennett)\
**Post date:** [March 1, 2016, 9:56pm UTC](https://forum.ansible.com/t/win-template-always-changing/20704/6 "2016-03-01T21:56:33Z")

</div>

Hi Jon,

No, sadly I didn't! ☹ For some reason I thought a post-pull hook had  
been implemented that made that unnecessary. Apologies for the noise,  
it is working as expected now 🙂

Regards,

Chris

---

<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:** [March 2, 2016, 6:40am UTC](https://forum.ansible.com/t/win-template-always-changing/20704/7 "2016-03-02T06:40:34Z")

</div>

Chris, glad you are working again. I just tested and the template integration tests are passing again now with latest devel.

For info I think there is still an issue regarding leaving temp dirs behind when using win\_template which I am investigating under [https://github.com/ansible/ansible-modules-core/issues/3032](https://github.com/ansible/ansible-modules-core/issues/3032)

Jon
