]> git.phdru.name Git - ansible.git/commitdiff
Fix(init-system2): Fix permissions
authorOleg Broytman <phd@phdru.name>
Tue, 30 Jul 2019 16:05:32 +0000 (19:05 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 30 Jul 2019 16:05:32 +0000 (19:05 +0300)
playbooks/debian/roles/init-system2/README.txt
playbooks/debian/roles/init-system2/tasks/main.yml

index 7c66d6f81631d641da3387709ffe5172d7fe3b7f..cf6c45b8ff44225ec620146f63861708193be376 100644 (file)
@@ -1 +1 @@
-Init Debian system: phase2.
+Init Debian system: phase2 - setup /usr/local.
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