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,12 +10,14 @@
ansible.builtin.set_fact:
zsh:
methods:
- system
default: [system]
pkgname:
RedHat: zsh
Debian: zsh
Alpine: zsh
Archlinux: zsh
default: zsh
- name: Finalise zsh default facts
ansible.builtin.set_fact:
zsh:
methods: "{{ zsh.methods[os_family] | default(zsh.methods.default) }}"
pkgname: "{{ zsh.pkgname[os_family] | default(zsh.pkgname.default) }}"
# }}}
- name: Add zsh
when:
@@ -33,11 +35,11 @@
block:
- name: Queue zsh system install
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + [zsh.pkgname[os_family]] }}"
pkg_sys: "{{ pkg_sys + [zsh.pkgname] }}"
- name: Finalise zsh system install
ansible.builtin.set_fact:
zsh_install: "{{ zsh_imethod }}={{ zsh.pkgname[os_family] }}"
zsh_install: "{{ zsh_imethod }}={{ zsh.pkgname }}"
- name: Configure zsh source install
when: