From b09253bf2680c2d53aefaaffa62a21cd05f5bb88 Mon Sep 17 00:00:00 2001 From: binary Date: Fri, 20 Nov 2020 16:53:43 +0100 Subject: Fix creation of zsh folder for linux host. --- roles/common/tasks/main.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'roles') 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 -- cgit v1.2.3