add archlinux installation methods
This commit is contained in:
@@ -6,11 +6,16 @@
|
||||
## Methods: [source]
|
||||
## Helpers: [cargo_build]
|
||||
---
|
||||
- name: Configure yazi installation # {{{
|
||||
- name: Set yazi default facts # {{{
|
||||
ansible.builtin.set_fact:
|
||||
yazi:
|
||||
methods:
|
||||
- source
|
||||
default: [source]
|
||||
Archlinux: [system, source]
|
||||
- name: Finalise yazi default facts
|
||||
ansible.builtin.set_fact:
|
||||
yazi:
|
||||
methods: "{{ yazi.methods[os_family] | default(yazi.methods.default) }}"
|
||||
version: 26.1.22
|
||||
git:
|
||||
repo: https://github.com/sxyazi/yazi.git
|
||||
@@ -53,6 +58,15 @@
|
||||
ansible.builtin.set_fact:
|
||||
yazi_imethod: "{{ imethod if imethod in yazi.methods else yazi.methods[0] }}"
|
||||
|
||||
- name: Configure yazi system install
|
||||
when:
|
||||
- yazi_imethod == 'system'
|
||||
block:
|
||||
- name: Queue yazi system install
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + [yazi.pkgname] }}"
|
||||
yazi_install: "{{ yazi_imethod }}={{ yazi.pkgname }}"
|
||||
|
||||
- name: Configure yazi source install
|
||||
when:
|
||||
- yazi_imethod == 'source'
|
||||
|
||||
Reference in New Issue
Block a user