state: directory
owner: root
group: staff
- mode: "ug+rwx,o+rx,g+s"
+ recurse: yes
+
+- name: Setup directories under /usr/local
+ become: true
+ command: find /usr/local -type d -exec chown root.staff {} + -exec chmod ug+rwx,o+rx,g+s {} +
+
+- name: Setup files under /usr/local
+ become: true
+ command: find /usr/local -type f -exec chmod ug+rwX,o+rX {} +
+
+- name: Setup /usr/local/src
+ become: true
+ file:
+ path: /usr/local/src
+ state: directory
+ owner: phd
+ group: staff
recurse: yes