From 91cd5480b5a1ca1103d5e239af3d331477c41c2c Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 21 Nov 2017 22:28:39 +0100 Subject: initial commit as copy from helsinki ansible repo --- roles/zsh/tasks/main.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 roles/zsh/tasks/main.yaml (limited to 'roles/zsh/tasks/main.yaml') diff --git a/roles/zsh/tasks/main.yaml b/roles/zsh/tasks/main.yaml new file mode 100644 index 00000000..61aa7c83 --- /dev/null +++ b/roles/zsh/tasks/main.yaml @@ -0,0 +1,15 @@ +--- +- name: install zsh packages + apt: name={{ item }} state=present + with_items: + - zsh + +- name: install zsh-config + copy: src={{ item.src }} dest={{ item.dest }} + with_items: + - { "src": "zshrc", "dest": "/etc/zsh/zshrc" } + - { "src": "zshrc.skel", "dest": "/etc/skel/.zshrc" } + +- name: set zsh as default shell + user: name="{{ item }}" shell=/bin/zsh + with_items: "{{ [ 'root' ] | union(zsh_loginshell_user | default([])) }}" -- cgit v1.2.3