# 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