aboutsummaryrefslogtreecommitdiffstats
path: root/roles/common/tasks
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2020-11-20 16:53:43 +0100
committerbinary <me@rgoncalves.se>2020-11-20 16:53:43 +0100
commitb09253bf2680c2d53aefaaffa62a21cd05f5bb88 (patch)
treeca80384fe3c38f2d8636e7c4f74782ab45a80198 /roles/common/tasks
parentbcf7bf0db817068a27ddaa5209fa166954be8743 (diff)
downloadinfrastructure-b09253bf2680c2d53aefaaffa62a21cd05f5bb88.tar.gz
Fix creation of zsh folder for linux host.
Diffstat (limited to 'roles/common/tasks')
-rw-r--r--roles/common/tasks/main.yml17
1 files changed, 13 insertions, 4 deletions
diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml
index 5dca08d..2f2074a 100644
--- a/roles/common/tasks/main.yml
+++ b/roles/common/tasks/main.yml
@@ -6,16 +6,25 @@
- name: check existence of data directory
file:
path: /data
- owner: root
+ owner: "{{ user_root }}"
group: "{{ group_root }}"
state: directory
mode: 0711
+- name: check existence of zsh directoy
+ file:
+ path: /etc/zsh
+ owner: "{{ user_root }}"
+ group: "{{ group_root }}"
+ state: directory
+ mode: 0755
+ when: os_type == "linux"
+
- name: copy zsh configuration file
copy:
src: zshrc
dest: "{{ path_zshconfig }}"
- owner: root
+ owner: "{{ user_root }}"
group: "{{ group_root }}"
mode: 0644
@@ -23,7 +32,7 @@
copy:
src: tmux.conf
dest: "{{ path_tmuxconfig }}"
- owner: root
+ owner: "{{ user_root }}"
group: "{{ group_root }}"
mode: 0644
@@ -31,7 +40,7 @@
template:
src: motd.j2
dest: /etc/motd
- owner: root
+ owner: "{{ user_root }}"
group: "{{ group_root }}"
mode: 0644
remember that computers suck.