From 8277fddd8479851f1a68894470df45be932c95a8 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 30 Jul 2019 19:05:32 +0300 Subject: [PATCH] Fix(init-system2): Fix permissions --- playbooks/debian/roles/init-system2/README.txt | 2 +- playbooks/debian/roles/init-system2/tasks/main.yml | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) 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 -- 2.39.5