]> git.phdru.name Git - ansible.git/blobdiff - playbooks/debian/roles/init-system2/tasks/main.yml
Fix(init-system2): Fix permissions
[ansible.git] / playbooks / debian / roles / init-system2 / tasks / main.yml
index 555e21cf08f964f16524c8f9fa50b9e29f099acc..48897d9a6b516f5a866cb28f39ead3b00cab26fb 100644 (file)
@@ -5,5 +5,21 @@
     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