]> git.phdru.name Git - ansible.git/blobdiff - playbooks/debian/roles/init-system2/tasks/main.yml
Feat(firewall): Use handler instead of condition
[ansible.git] / playbooks / debian / roles / init-system2 / tasks / main.yml
index a784d6e492f549a2a7b0a083bcd73f36767cf6e4..48897d9a6b516f5a866cb28f39ead3b00cab26fb 100644 (file)
@@ -5,9 +5,16 @@
     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:
@@ -15,5 +22,4 @@
     state: directory
     owner: phd
     group: staff
-    mode: "ug+rwx,o+rx,g+s"
     recurse: yes