diff options
Diffstat (limited to 'roles/zsh')
-rw-r--r-- | roles/zsh/tasks/main.yaml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/zsh/tasks/main.yaml b/roles/zsh/tasks/main.yaml index 93bb1abf..409274a9 100644 --- a/roles/zsh/tasks/main.yaml +++ b/roles/zsh/tasks/main.yaml @@ -19,3 +19,9 @@ name: "{{ item }}" shell: /bin/zsh with_items: "{{ [ 'root' ] | union(zsh_loginshell_user | default([])) }}" + +- name: set zsh the default shell for adduser + lineinfile: + regexp: '^#?DSHELL=' + line: 'DSHELL=/bin/zsh' + path: /etc/adduser.conf |