Squash merge move_to_single_file_pkgs into main
This commit is contained in:
@@ -1,5 +1,40 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Package: fzf
|
||||
## Description: the standard for fuzzy finders
|
||||
## Version: latest
|
||||
## Methods: system
|
||||
## Helpers: -
|
||||
---
|
||||
- name: Append fzf to pkg_sys
|
||||
- name: Set fzf default facts # {{{
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['fzf'] }}"
|
||||
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 } ) }}"
|
||||
|
||||
Reference in New Issue
Block a user