This commit is contained in:
Matthew Stobbs
2026-02-25 17:10:20 -07:00
parent e39c3b7046
commit 30313d2858
29 changed files with 32 additions and 505 deletions

View File

@@ -1,11 +1,33 @@
# vim: set filetype=yaml.ansible :
---
- name: Add zsh
when:
- "'zsh' not in __configured"
block:
- name: Set zsh install method
when:
- zsh_install_method is undefined
ansible.bulitin.set_fact:
zsh_install_method: "{{ install_method if install_method in zsh_install_methods else zsh_install_methods[0] }}"
- name: Append zsh to pkg_sys
when:
- zsh_install_method == 'system'
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['zsh'] }}"
- name: Configure zsh source install
when:
- zsh_install_method == 'source'
ansible.builtin.set_fact:
zsh_source_install:
build_deps:
build_flags:
source_dir:
repo: "{{ zsh_base_url }}"
version: "{{ zsh_version }}"
files:
- name: Set zsh_configured
ansible.builtin.set_fact:
zsh_configured: true