SolidStateSubether/Ansible/roles/base/tasks/fish.yml
2018-05-27 23:01:28 -04:00

25 lines
563 B
YAML

---
- 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 }}"