From: Oleg Broytman Date: Tue, 30 Jul 2019 16:05:32 +0000 (+0300) Subject: Fix(init-system2): Fix permissions X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=8277fddd8479851f1a68894470df45be932c95a8;p=ansible.git Fix(init-system2): Fix permissions --- diff --git a/playbooks/debian/roles/init-system2/README.txt b/playbooks/debian/roles/init-system2/README.txt index 7c66d6f..cf6c45b 100644 --- a/playbooks/debian/roles/init-system2/README.txt +++ b/playbooks/debian/roles/init-system2/README.txt @@ -1 +1 @@ -Init Debian system: phase2. +Init Debian system: phase2 - setup /usr/local. diff --git a/playbooks/debian/roles/init-system2/tasks/main.yml b/playbooks/debian/roles/init-system2/tasks/main.yml index a784d6e..48897d9 100644 --- a/playbooks/debian/roles/init-system2/tasks/main.yml +++ b/playbooks/debian/roles/init-system2/tasks/main.yml @@ -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