summaryrefslogtreecommitdiff
path: root/roles/zsh/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/zsh/tasks')
-rw-r--r--roles/zsh/tasks/main.yaml15
1 files changed, 15 insertions, 0 deletions
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([])) }}"