finished with a bunch more

This commit is contained in:
Matthew Stobbs
2026-03-03 15:08:15 -07:00
parent 24a4ec17ec
commit 065031b77f
27 changed files with 364 additions and 208 deletions

View File

@@ -8,26 +8,38 @@
when:
- neovim_install_method is undefined
ansible.builtin.set_fact:
neovim_install_method: "{{ install_method if install_method in neovim_install_methods else neovim_install_methods[0] }}"
- name: Load neovim config
ansible.builtin.include_tasks:
file: config/neovim.yml
neovim_install_method: "{{ install_method if install_method in neovim.install_methods else neovim.install_methods[0] }}"
- name: Append neovim to pkg_appimage
when:
- neovim.method == 'appimage'
ansible.builtin.set_fact:
pkg_appimage: "{{ pkg_appimage + ['neovim'] }}"
- name: Configure neovim source install
when:
- neovim_install_method == "source"
block:
- name: Queue pkg build deps
when:
- neovim.build_pkgdeps is defined
loop: "{{ neovim.build_pkgdeps }}"
loop_control:
loop_var: dep
ansible.builtin.include_tasks: "pkgs/{{ dep }}.yml"
- name: Append neovim to pkg_sys
when:
- neovim.method == 'sys'
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['neovim'] }}"
- name: Set helper facts
ansible.builtin.set_fact:
neovim_src_install:
path: "{{ d_cache.path }}/neovim"
repo: "{{ neovim.git_repo }}"
version: "{{ neovim_version }}"
targets:
- name: ""
do_become: false
params:
CMAKE_BUILD_TYPE: Release
CMAKE_EXTRA_FLAGS: "-DCMAKE_INSTALL_PREFIX={{ install_prefix }}"
- name: install
do_become: true
- name: Append neovim to source install list
ansible.builtin.set_fact:
pkg_make: "{{ pkg_make + [neovim_src_install] }}"
- name: Append neovim to pkg_src
when:
- neovim.method == 'src'
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + neovim.build_deps }}"
pkg_src: "{{ pkg_src + ['neovim'] }}"
- name: Finalized neovim configuration
ansible.builtin.set_fact:
__configured: "{{ __configured | combine( { 'neovim': neovim_install_method } ) }}"