]> git.phdru.name Git - ansible.git/blobdiff - playbooks/redhat/roles/init-system2/tasks/main.yml
Feat(RedHat): Add RedHat and redhatoids playbooks and roles
[ansible.git] / playbooks / redhat / roles / init-system2 / tasks / main.yml
diff --git a/playbooks/redhat/roles/init-system2/tasks/main.yml b/playbooks/redhat/roles/init-system2/tasks/main.yml
new file mode 100644 (file)
index 0000000..991cf55
--- /dev/null
@@ -0,0 +1,25 @@
+- name: Setup /usr/local
+  become: true
+  file:
+    path: /usr/local
+    state: directory
+    owner: root
+    group: wheel
+    recurse: yes
+
+- name: Setup directories under /usr/local
+  become: true
+  command: find /usr/local -type d -exec chown root.wheel {} + -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: wheel
+    recurse: yes