make module not idempotent

For certain values of idempotent :slight_smile:

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

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:

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.