X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=playbooks%2Fdebian%2Froles%2Finit-system2%2Ftasks%2Fmain.yml;h=48897d9a6b516f5a866cb28f39ead3b00cab26fb;hb=b8f10de1474570fe82b311a76fb2d5b51ad8152b;hp=a784d6e492f549a2a7b0a083bcd73f36767cf6e4;hpb=0521a0acb2b93b09dfa52a683434fb013ff50201;p=ansible.git 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