fixed packages to be more generic

This commit is contained in:
2026-04-18 15:27:33 -06:00
parent 951dfc327f
commit 61c6e800ad
14 changed files with 152 additions and 73 deletions

View File

@@ -10,8 +10,15 @@
ansible.builtin.set_fact:
eza:
methods:
- source
- system
Archlinux: [system, source]
default: [source]
pkgname:
default: eza
- name: Finalise eza default facts
ansible.builtin.set_fact:
eza:
methods: "{{ eza.methods[os_family] | default(eza.methods.default) }}"
pkgname: "{{ eza.pkgname[os_family] | default(eza.pkgname.default) }}"
# }}}
- name: Configure eza
when:
@@ -23,6 +30,15 @@
ansible.builtin.set_fact:
eza_imethod: "{{ imethod if imethod in eza.methods else eza.methods[0] }}"
- name: Configure eza system install
when:
- eza_imethod == 'system'
block:
- name: Queue eza system install
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + [eza.pkgname] }}"
eza_install: "{{ eza_imethod }}={{ eza.pkgname }}"
- name: Configure eza source install
when:
- eza_imethod == "source"