I run my ansible playbooks through a cron job every night as I add to them every now and then.
I want my output of each to only say changed=(num) if there is actually a change, but a few specific modules say changed when they were not changed at all.
EX:
- name: (name)
file:
state: touch
path: (path)
group: (group)
mode: (perms)
The path before the task is run contains the same group and permissions as the requested permissions and group. So they don't change when the task is run, but the result ansible says it has "changed".
I looked this issue up and found https://github.com/ansible/ansible/issues/21124 but I'm running ansible 2.2.1.0. So it's my understanding from this that they are indicating that the file module is idempotent.
Are there any suggestions to make it idempotent?