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