Skip to content

Commit

Permalink
fix: check for fzf installed any way
Browse files Browse the repository at this point in the history
  • Loading branch information
popstas committed Apr 2, 2017
1 parent cbacc3d commit d5f8aae
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,19 @@
become: yes
become_user: "{{ zsh_user }}"

# TODO: global install?
- name: Check fzf installed
command: which fzf
changed_when: false
failed_when: false
register: zsh_register_fzf_command

- name: Download fzf
unarchive:
src: "{{ zsh_fzf_url }}"
dest: /usr/local/bin
remote_src: yes
creates: /usr/local/bin/fzf
when: zsh_register_fzf_command.rc == 1

- name: Set directory permissions
file:
Expand Down

0 comments on commit d5f8aae

Please sign in to comment.