Split out fzf from zsh into its own role

This commit is contained in:
2022-06-18 21:15:40 +01:00
parent 441343fd7c
commit c596fcb87a
9 changed files with 40 additions and 12 deletions

View File

@@ -0,0 +1,5 @@
---
- name: install homebrew package
homebrew:
name: fzf
state: latest

View File

@@ -0,0 +1,13 @@
---
- name: clone fzf repo
git:
repo: https://github.com/junegunn/fzf.git
dest: ~/.local/src/fzf
notify: install fzf binaries
- meta: flush_handlers
- name: create symbolic links
file:
state: link
src: ~/.local/src/fzf/bin/fzf
dest: ~/.local/bin/fzf

View File

@@ -0,0 +1,12 @@
---
- name: install apt package
when: ansible_distribution == "Debian" and
ansible_distribution_version == "unstable"
become: true
apt:
name: fzf
state: latest
- include_tasks: Debian-old.yaml
when: not (ansible_distribution == "Debian" and
ansible_distribution_version == "unstable")

View File

@@ -0,0 +1,5 @@
---
- name: install chocolatey package
win_chocolatey:
name: fzf
state: latest

View File

@@ -0,0 +1,2 @@
---
- include_tasks: '{{ansible_os_family}}.yaml'