adjusting variable names, fixing errors
This commit is contained in:
@@ -1,10 +1,17 @@
|
||||
# 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:
|
||||
install_methods:
|
||||
methods:
|
||||
- system
|
||||
pkgname: fzf
|
||||
# }}}
|
||||
- name: Configure fzf
|
||||
when:
|
||||
@@ -12,18 +19,22 @@
|
||||
block:
|
||||
- name: Set fzf install method
|
||||
when:
|
||||
- fzf_install_method is undefined
|
||||
- fzf_imethod is undefined
|
||||
ansible.builtin.set_fact:
|
||||
fzf_install_method: "{{ install_method if install_method in fzf.install_methods else fzf.install_methods[0] }}"
|
||||
fzf_imethod: "{{ imethod if imethod in fzf.methods else fzf.methods[0] }}"
|
||||
|
||||
- name: Configure fzf system install
|
||||
when:
|
||||
- fzf_install_method == "system"
|
||||
- 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_method } ) }}"
|
||||
__configured: "{{ __configured | combine( { 'fzf': fzf_install } ) }}"
|
||||
|
||||
Reference in New Issue
Block a user