41 lines
1.0 KiB
YAML
41 lines
1.0 KiB
YAML
# vim: set filetype=yaml.ansible :
|
|
#
|
|
## Package: fzf
|
|
## Description: the standard for fuzzy finders
|
|
## Version: latest
|
|
## Methods: system
|
|
## Helpers: -
|
|
---
|
|
- name: Set fzf default facts # {{{
|
|
ansible.builtin.set_fact:
|
|
fzf:
|
|
methods:
|
|
- system
|
|
pkgname: fzf
|
|
# }}}
|
|
- name: Configure fzf
|
|
when:
|
|
- "'fzf' not in __configured"
|
|
block:
|
|
- name: Set fzf install method
|
|
when:
|
|
- fzf_imethod is undefined
|
|
ansible.builtin.set_fact:
|
|
fzf_imethod: "{{ imethod if imethod in fzf.methods else fzf.methods[0] }}"
|
|
|
|
- name: Configure fzf system install
|
|
when:
|
|
- fzf_imethod == "system"
|
|
block:
|
|
- name: Append fzf to pkg_sys
|
|
ansible.builtin.set_fact:
|
|
pkg_sys: "{{ pkg_sys + ['fzf'] }}"
|
|
|
|
- name: Finalise fzf system install
|
|
ansible.builtin.set_fact:
|
|
fzf_install: "{{ fzf_imethod }}={{ fzf.pkgname }}"
|
|
|
|
- name: Finalize fzf configuration
|
|
ansible.builtin.set_fact:
|
|
__configured: "{{ __configured | combine( { 'fzf': fzf_install } ) }}"
|