diff options
Diffstat (limited to 'roles/zsh/tasks')
-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 c1d63b7a..23e8e9f5 100644 --- a/roles/zsh/tasks/main.yaml +++ b/roles/zsh/tasks/main.yaml @@ -20,6 +20,12 @@ shell: /bin/zsh with_items: "{{ [ 'root' ] | union(zsh_loginshell_user | default([])) }}" +- name: make zsh the default shell for useradd + lineinfile: + regexp: '^#?SHELL=' + line: 'SHELL=/bin/zsh' + path: /etc/adduser.conf + - name: make zsh the default shell for adduser lineinfile: regexp: '^#?DSHELL=' |