2 system_group: "{% if ansible_facts.os_family == 'Debian' %}staff{% elif ansible_facts.os_family == 'RedHat' %}wheel{% endif %}"
4 - name: Setup /usr/local
10 group: "{{ system_group }}"
13 - name: Setup directories under /usr/local
15 command: "find /usr/local -type d -exec chown root.{{ system_group }} {} + -exec chmod ug+rwx,o+rx,g+s {} +"
17 - name: Setup files under /usr/local
19 command: find /usr/local -type f -exec chmod ug+rwX,o+rX {} +
21 - name: Setup /usr/local/darkstat
24 path: /usr/local/darkstat
27 group: "{{ system_group }}"
29 when: inventory_hostname == 'iskra-aviel.phdru.name'
31 - name: Setup /usr/local/src
37 group: "{{ system_group }}"