add yazi config, vars and update install
This commit is contained in:
7
tasks/config/yazi.yml
Normal file
7
tasks/config/yazi.yml
Normal 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] }}"
|
||||||
@@ -4,11 +4,23 @@
|
|||||||
when:
|
when:
|
||||||
- yazi_fm_configured is undefined
|
- yazi_fm_configured is undefined
|
||||||
block:
|
block:
|
||||||
- name: Append yazi-fm to pkg_cargo
|
- name: Load yazi-fm config
|
||||||
# notify: Depend cargo
|
ansible.builtin.include_tasks:
|
||||||
# changed_when: true
|
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:
|
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
|
- name: Set yazi-fm_configured
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
|
|||||||
23
vars/pkgs/yazi.yml
Normal file
23
vars/pkgs/yazi.yml
Normal 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"
|
||||||
Reference in New Issue
Block a user