fixed packages to be more generic
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user