title: ansible change permissions using file module idempotent
body: <p>I run my ansible playbooks through a cron job every night as I add to them every now and then.</p>
  
  <p>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.</p>
  
  <p>EX:</p>
  
  <pre><code>- name: (name)
    file:
      state: touch
      path: (path)
      group: (group)
      mode: (perms)
  </code></pre>
  
  <p>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".</p>
  
  <p>I looked this issue up and found <a href="https://github.com/ansible/ansible/issues/21124" rel="nofollow noreferrer">https://github.com/ansible/ansible/issues/21124</a> 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. </p>
  
  <p>Are there any suggestions to make it idempotent?</p>