ansible icon indicating copy to clipboard operation
ansible copied to clipboard

unable to change shell with ansible

Open vellankiindeevar opened this issue 2 years ago • 1 comments

unable to change shell with ansible

  shell: chsh -s $(which zsh)
  tags: *tags_for_zsh_tasks
  become: yes

vellankiindeevar avatar May 08 '22 17:05 vellankiindeevar

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

petrsiegl avatar Oct 08 '22 19:10 petrsiegl