SolidStateSubether/Ansible/roles/base/tasks/fish.yml

26 lines
563 B
YAML
Raw Permalink Normal View History

2018-05-28 03:01:28 +00:00
---
- 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 }}"