--- /dev/null
+# /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'
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" }