title: Ansible - find and set permissions, including sticky bit
body: <p>Using Ansible 2.1.4.0 </p>
  
  <p>Is it possible to set the <code>sticky bit</code> and folder permissions in 1 task? </p>
  
  <p>Example;</p>
  
  <pre><code># Shell is used over find module cause symlink breaks and performance
  
  - name: Find directories in /tmp which are not valid
    shell: find
      /tmp/test -type d
      \( ! -user root -o ! -group root -o ! -perm 775 \)
    register: find1
  
  - name: Set 775 for found directories
    file:
      path: "{{ item }}"
      owner: root
      group: vagrant
      mode: 0775
      state: directory
    with_items: "{{ findPermission1.stdout_lines | default([]) }}"
  
  
  - name: Find directories in /tmp which have no sticky bit
    shell: find
      /tmp/test -type d
      \! -perm /1000
    changed_when: false
    register: find2
  
  - name: Set permissions for found directories
    file:
      path: "{{ item }}"
      owner: root
      group: vagrant
      mode: g+s
      state: directory
      recurse: no #cause it already found recurse
    with_items: "{{ find.stdout_lines | default([]) }}"
  </code></pre>
  
  <p>Right now, I must have 2 different tasks to set the permissions. But they overwrite each other. </p>
  
  <p>Goal: set the permission to 775 and g+s in one task. </p>