Files
ansible_role_package/tasks/pkgs/zsh.yml
2026-03-03 15:08:15 -07:00

34 lines
918 B
YAML

# 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.builtin.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