# make module not idempotent

**URL:** <https://forum.ansible.com/t/make-module-not-idempotent/24389>\
**Category:** Ansible Project\
**Created:** [May 3, 2017, 2:24pm UTC](https://forum.ansible.com/t/make-module-not-idempotent/24389 "2017-05-03T14:24:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ed\_Greenberg](https://avatars.discourse-cdn.com/v4/letter/e/7ab992/32.png) [@Ed\_Greenberg](https://forum.ansible.com/u/Ed_Greenberg)\
**Post date:** [May 3, 2017, 2:24pm UTC](https://forum.ansible.com/t/make-module-not-idempotent/24389/1 "2017-05-03T14:24:04Z")

</div>

For certain values of idempotent 🙂

I notice that the make module shows changed every time.

I’m trying to make mod\_security:

`

- name: make modsecurity  
make:  
chdir: /root/modsecurity-2.9.1  
`

every time this runs, it shows changed.

Nothing in the docs indicates that there is a way to prevent this.

Am I missing something?

Thanks,

Ed G

---

<div class="post-metadata">

**Author:** ![jean-yves](https://avatars.discourse-cdn.com/v4/letter/j/a587f6/32.png) [@jean-yves](https://forum.ansible.com/u/jean-yves)\
**Post date:** [May 3, 2017, 2:33pm UTC](https://forum.ansible.com/t/make-module-not-idempotent/24389/2 "2017-05-03T14:33:46Z")

</div>

Did you try forcing language in ansible.cfg ?

Some modules were not idempotent until I put these lines :

module\_lang = C  
module\_set\_locale = True

If this is the case, you should report the bug specifying it, what I’ve not done

Regards,

3 mai 2017 16:25 “Ed Greenberg” \<greenberg.ed@gmail.com\> a écrit:

---

<div class="post-metadata">

**Author:** ![Shawn\_Hanff](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@Shawn\_Hanff](https://forum.ansible.com/u/Shawn_Hanff)\
**Post date:** [May 3, 2017, 4:46pm UTC](https://forum.ansible.com/t/make-module-not-idempotent/24389/3 "2017-05-03T16:46:42Z")

</div>

Are you not able to add a when: conditional and only run it if certain related files do or don’t exist?

We have a similar task that will set certain facts when a certain route exists on a server vs. when the route does not exist.
