]> git.phdru.name Git - ansible.git/commitdiff
Feat(init-system2): Init Debian system: phase2
authorOleg Broytman <phd@phdru.name>
Fri, 26 Jul 2019 19:13:40 +0000 (22:13 +0300)
committerOleg Broytman <phd@phdru.name>
Fri, 26 Jul 2019 19:13:40 +0000 (22:13 +0300)
`chown`/`chmod` `/usr/local`.

playbooks/debian/init-system2.yml
playbooks/debian/roles/init-system2/README.txt [new file with mode: 0644]
playbooks/debian/roles/init-system2/tasks/main.yml [new file with mode: 0644]

index 866cbf2c36215b42398b920f2a56b797ef35428f..0ca133fe9982fea80c89a05126738d3cf92a81c8 100644 (file)
@@ -2,6 +2,7 @@
   hosts: "{{ hosts | default('servers') }}"
   gather_facts: false
   roles:
+    - init-system2
     - remove-systemd
     - root
     - firewall
diff --git a/playbooks/debian/roles/init-system2/README.txt b/playbooks/debian/roles/init-system2/README.txt
new file mode 100644 (file)
index 0000000..7c66d6f
--- /dev/null
@@ -0,0 +1 @@
+Init Debian system: phase2.
diff --git a/playbooks/debian/roles/init-system2/tasks/main.yml b/playbooks/debian/roles/init-system2/tasks/main.yml
new file mode 100644 (file)
index 0000000..555e21c
--- /dev/null
@@ -0,0 +1,9 @@
+- name: Setup /usr/local
+  become: true
+  file:
+    path: /usr/local
+    state: directory
+    owner: root
+    group: staff
+    mode: "ug+rwx,o+rx,g+s"
+    recurse: yes