- name: retrieve zsh path # noqa no-changed-when command-instead-of-shell shell: command -v zsh register: zsh_path - name: ensure zsh is used for workstation user user: name: "{{ workstation_user }}" shell: "{{ zsh_path.stdout_lines[0] }}"