add yazi config, vars and update install
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user