Files
ansible_role_package/tasks/pkgs/fzf.yml
Matthew Stobbs d1d556d425 modified make, fixed packages and vars
- the make helper now has distinct build stages
  - configure: is now defined in pkg.targets.configure
  - build: is now defined in pkg.targets.build
  - install: is now defined in pkg.targets.install
  - added pre-install: which is a list of targets that are looped over
before install
  - added post-instal: which is a list of targets that are looped over
after install

- removed major package level variables from vars/main.yml
  - moving those variables into actual package level variables as
defaults
  - if the values are defined they will be used instead of defaults
2026-03-19 13:39:26 -06:00

30 lines
859 B
YAML

# vim: set filetype=yaml.ansible :
---
- name: Set fzf default facts # {{{
ansible.builtin.set_fact:
fzf:
install_methods:
- system
# }}}
- name: Configure fzf
when:
- "'fzf' not in __configured"
block:
- name: Set fzf install method
when:
- fzf_install_method is undefined
ansible.builtin.set_fact:
fzf_install_method: "{{ install_method if install_method in fzf.install_methods else fzf.install_methods[0] }}"
- name: Configure fzf system install
when:
- fzf_install_method == "system"
block:
- name: Append fzf to pkg_sys
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['fzf'] }}"
- name: Finalize fzf configuration
ansible.builtin.set_fact:
__configured: "{{ __configured | combine( { 'fzf': fzf_install_method } ) }}"