diff options
Diffstat (limited to 'roles/zsh/tasks/main.yaml')
-rw-r--r-- | roles/zsh/tasks/main.yaml | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/roles/zsh/tasks/main.yaml b/roles/zsh/tasks/main.yaml index 61aa7c83..93bb1abf 100644 --- a/roles/zsh/tasks/main.yaml +++ b/roles/zsh/tasks/main.yaml @@ -1,15 +1,21 @@ --- - name: install zsh packages - apt: name={{ item }} state=present + apt: + name: "{{ item }}" + state: present with_items: - zsh - name: install zsh-config - copy: src={{ item.src }} dest={{ item.dest }} + copy: + src: "{{ item.src }}" + dest: "{{ item.dest }}" with_items: - - { "src": "zshrc", "dest": "/etc/zsh/zshrc" } - - { "src": "zshrc.skel", "dest": "/etc/skel/.zshrc" } + - { 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 + user: + name: "{{ item }}" + shell: /bin/zsh with_items: "{{ [ 'root' ] | union(zsh_loginshell_user | default([])) }}" |