37 lines
1.3 KiB
YAML
37 lines
1.3 KiB
YAML
# vim: set filetype=yaml.ansible :
|
|
---
|
|
- name: Set neovim install method
|
|
ansible.builtin.set_fact:
|
|
neovim:
|
|
method: "{{ pkgconfig.neovim.methods[ansible_distribution] | default(pkgconfig.neovim.methods.default) }}"
|
|
|
|
- name: Set neovim sys package manager config
|
|
when:
|
|
- neovim.method == 'sys'
|
|
ansible.builtin.set_fact:
|
|
neovim:
|
|
method: "{{ neovim.method }}"
|
|
pkgs: "{{ pkgconfig.neovim.pkgs[ansible_distribution] | default(pkgconfig.neovim.pkgs.default) }}"
|
|
|
|
- name: Set neovim src build config
|
|
when:
|
|
- neovim.method == 'src'
|
|
ansible.builtin.set_fact:
|
|
neovim:
|
|
method: "{{ neovim.method }}"
|
|
vers: "{{ pkgconfig.neovim.git_branch }}"
|
|
build_deps: "{{ pkgconfig.neovim.build_deps[ansible_os_family] }}"
|
|
git_repo: "{{ pkgconfig.neovim.git_repo }}"
|
|
git_path: "{{ d_tempdir.path }}/neovim"
|
|
build_type: "{{ pkgconfig.neovim.build_type }}"
|
|
|
|
- name: Set neovim config for appimage install
|
|
when:
|
|
- neovim.method == 'appimage'
|
|
ansible.builtin.set_fact:
|
|
neovim:
|
|
method: "{{ neovim.method }}"
|
|
file: "nvim-linux-{{ ansible_architecture }}.appimage"
|
|
link_name: nvim
|
|
url: "{{ pkgconfig.neovim.appimage.base_url }}/{{ neovim.vers }}/nvim-linux-{{ ansible_architecture }}.appimage"
|