From: nicoo Date: Tue, 14 Nov 2017 23:50:07 +0000 (+0100) Subject: ansible/roles/base: Fix mode on ZSH files and install a zprofile X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=01f62a252f9a86729bacefb9c6fd2fd7675a2694;p=noc.git ansible/roles/base: Fix mode on ZSH files and install a 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" }