ansible/roles/base: Fix mode on ZSH files and install a zprofile
authornicoo <nicoo@realraum.at>
Tue, 14 Nov 2017 23:50:07 +0000 (00:50 +0100)
committernicoo <nicoo@realraum.at>
Tue, 14 Nov 2017 23:50:07 +0000 (00:50 +0100)
ansible/roles/base/files/zprofile [new file with mode: 0644]
ansible/roles/base/tasks/main.yaml

diff --git a/ansible/roles/base/files/zprofile b/ansible/roles/base/files/zprofile
new file mode 100644 (file)
index 0000000..4fd82ad
--- /dev/null
@@ -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'
index c6b9c6f..c0d4ffd 100644 (file)
@@ -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" }