--- - name: Download Oh My Fish git: repo: "{{ omf_git_repo }}" dest: "{{ workdir_path }}/omf" become: yes become_user: "{{ user }}" - name: Set user's default shell user: name: "{{ user }}" shell: /usr/bin/fish - stat: path: "{{ user_home }}/.local/share/omf" register: omf_config_stat_result - name: Install Oh My Fish shell: ./install --noninteractive args: executable: /usr/bin/fish chdir: "{{ workdir_path }}/omf/bin/" when: omf_config_stat_result.stat.exists == False become: yes become_user: "{{ user }}"