ansible
ansible copied to clipboard
unable to change shell with ansible
unable to change shell with ansible
shell: chsh -s $(which zsh)
tags: *tags_for_zsh_tasks
become: yes
Your code changes login shell of the root
user thanks to the become: yes
. You need to specify your user name:
shell: chsh -s $(which zsh) your_username
tags: *tags_for_zsh_tasks
become: yes