aboutsummaryrefslogtreecommitdiffstats
path: root/roles/common/tasks
diff options
context:
space:
mode:
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.