add yazi config, vars and update install

This commit is contained in:
Matthew Stobbs
2025-05-10 19:24:50 -06:00
parent 454f2fab73
commit 2e621bfa00
3 changed files with 46 additions and 4 deletions

7
tasks/config/yazi.yml Normal file
View File

@@ -0,0 +1,7 @@
# vim: set filetype=yaml.ansible
---
- name: Set yazi vars
ansible.builtin.set_fact:
yazi:
pkgs: "{{ pkgconfig.yazi.pkgs }}"
deps: "{{ pkgconfig.yazi.depends[ansible_os_family] }}"

View File

@@ -4,11 +4,23 @@
when:
- yazi_fm_configured is undefined
block:
- name: Append yazi-fm to pkg_cargo
# notify: Depend cargo
# changed_when: true
- name: Load yazi-fm config
ansible.builtin.include_tasks:
file: config/yazi.yml
- name: Append yazi-fm pkg_deps
loop: "{{ yazi.pkg_deps }}"
loop_control:
loop_var: yazi_pkg_dep
vars:
pkg: "{{ yazi_pkg_dep }}"
ansible.builtin.include_tasks:
file: "pkgs/{{ yazi_pkg_dep }}.yml"
- name: Append yazi to pkg_cargo
ansible.builtin.set_fact:
pkg_cargo: "{{ pkg_cargo + ['yazi-fm', 'yazi-cli'] }}"
pkg_sys: "{{ pkg_sys + yazi.deps }}"
pkg_cargo: "{{ pkg_cargo + yazi.pkgs }}"
- name: Set yazi-fm_configured
ansible.builtin.set_fact:

23
vars/pkgs/yazi.yml Normal file
View File

@@ -0,0 +1,23 @@
yazi:
pkgs:
- name: yazi-fm
vers: 25.4.8
locked: true
- name: yazi-cli
vers: 25.4.8
locked: true
pkg_depends:
- fd
- ripgrep
- fzf
- zoxide
depends:
RedHat:
- file
- ffmpeg-free
- p7zip-plugins
- poppler
- ImageMagick
- wl-clipboard
- "@c-development"
- "@development"