X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=playbooks%2Fdebian%2Froles%2Finit-system2%2Ftasks%2Fmain.yml;h=48897d9a6b516f5a866cb28f39ead3b00cab26fb;hb=b8f10de1474570fe82b311a76fb2d5b51ad8152b;hp=555e21cf08f964f16524c8f9fa50b9e29f099acc;hpb=9bdea72ca8901b1820b81d605d1a9f902c2a8642;p=ansible.git diff --git a/playbooks/debian/roles/init-system2/tasks/main.yml b/playbooks/debian/roles/init-system2/tasks/main.yml index 555e21c..48897d9 100644 --- a/playbooks/debian/roles/init-system2/tasks/main.yml +++ b/playbooks/debian/roles/init-system2/tasks/main.yml @@ -5,5 +5,21 @@ 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: + path: /usr/local/src + state: directory + owner: phd + group: staff recurse: yes