From 01f62a252f9a86729bacefb9c6fd2fd7675a2694 Mon Sep 17 00:00:00 2001 From: nicoo Date: Wed, 15 Nov 2017 00:50:07 +0100 Subject: [PATCH] ansible/roles/base: Fix mode on ZSH files and install a zprofile --- ansible/roles/base/files/zprofile | 9 +++++++++ ansible/roles/base/tasks/main.yaml | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 ansible/roles/base/files/zprofile diff --git a/ansible/roles/base/files/zprofile b/ansible/roles/base/files/zprofile new file mode 100644 index 0000000..4fd82ad --- /dev/null +++ b/ansible/roles/base/files/zprofile @@ -0,0 +1,9 @@ +# /etc/zsh/zprofile: system-wide .zprofile file for zsh(1). +# +# This file is sourced only for login shells (i.e. shells +# invoked with "-" as the first character of argv[0], and +# shells invoked with the -l flag.) +# +# Global Order: zshenv, zprofile, zshrc, zlogin +umask 077 +emulate sh -c 'source /etc/profile' diff --git a/ansible/roles/base/tasks/main.yaml b/ansible/roles/base/tasks/main.yaml index c6b9c6f..c0d4ffd 100644 --- a/ansible/roles/base/tasks/main.yaml +++ b/ansible/roles/base/tasks/main.yaml @@ -62,8 +62,9 @@ when: ansible_service_mgr == "systemd" - name: install zshrc - copy: src={{ item.src }} dest={{ item.dest }} mode=0640 + copy: src={{ item.src }} dest={{ item.dest }} mode=0644 with_items: + - { "src": "zprofile", "dest": "/etc/zsh/zprofile" } - { "src": "zshrc", "dest": "/etc/zsh/zshrc" } - { "src": "zshrc.skel", "dest": "/etc/skel/.zshrc" } -- 1.7.10.4