diff options
author | Christian Pointner <equinox@spreadspace.org> | 2017-11-21 22:28:39 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2017-11-21 22:28:39 +0100 |
commit | 91cd5480b5a1ca1103d5e239af3d331477c41c2c (patch) | |
tree | b495bf31e2d5da50b045838a1e8d0455db09ee65 /roles/zsh/tasks |
initial commit as copy from helsinki ansible repo
Diffstat (limited to 'roles/zsh/tasks')
-rw-r--r-- | roles/zsh/tasks/main.yaml | 15 |
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([])) }}" |