From: Oleg Broytman Date: Fri, 26 Jul 2019 19:13:40 +0000 (+0300) Subject: Feat(init-system2): Init Debian system: phase2 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=9bdea72ca8901b1820b81d605d1a9f902c2a8642;p=ansible.git Feat(init-system2): Init Debian system: phase2 `chown`/`chmod` `/usr/local`. --- diff --git a/playbooks/debian/init-system2.yml b/playbooks/debian/init-system2.yml index 866cbf2..0ca133f 100644 --- a/playbooks/debian/init-system2.yml +++ b/playbooks/debian/init-system2.yml @@ -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 index 0000000..7c66d6f --- /dev/null +++ b/playbooks/debian/roles/init-system2/README.txt @@ -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 index 0000000..555e21c --- /dev/null +++ b/playbooks/debian/roles/init-system2/tasks/main.yml @@ -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