diff options
author | Christian Pointner <equinox@spreadspace.org> | 2017-12-07 17:59:15 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2017-12-07 17:59:15 +0100 |
commit | 4bce4e54c4e97d0fa4128dee67f57ba33ef6a2b0 (patch) | |
tree | 075209f7a8267637f0a7f6f285244a62eec75727 /roles/zsh/tasks | |
parent | cleaned upgrade role (diff) |
harmonized yaml syntax
Diffstat (limited to 'roles/zsh/tasks')
-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([])) }}" |