clean up, refactor, documentation
- reducing amount of splitting in configs - documenting configuration
This commit is contained in:
@@ -2,33 +2,15 @@
|
||||
- ansible.builtin.include_vars:
|
||||
file: neovim.yml
|
||||
name: _neovim
|
||||
- ansible.builtin.set_fact:
|
||||
pkgconfig.neovim: "{{ _neovim | ansible.builtin.combine(pkgconfig.neovim) }}"
|
||||
|
||||
- name: linux installation
|
||||
when: ansible_system == 'Linux'
|
||||
block:
|
||||
- name: ensure install dir exists
|
||||
ansible.builtin.file:
|
||||
state: directory
|
||||
path: "{{ _neovim.install_dir }}"
|
||||
|
||||
- name: install neovim appimage
|
||||
ansible.builtin.get_url:
|
||||
backup: true
|
||||
url: "{{ _neovim[ansible_system].appimage.dl }}"
|
||||
dest: "{{ _neovim.install_dir }}/nvim.appimage"
|
||||
mode: "0755"
|
||||
owner: root
|
||||
group: root
|
||||
checksum: "{{ _neovim[ansible_system].appimage.checksum }}"
|
||||
|
||||
- name: link neovim to prefix bin
|
||||
ansible.builtin.file:
|
||||
state: link
|
||||
src: "{{ _neovim.install_dir }}/nvim.appimage }}"
|
||||
path: "{{ _neovim.install_prefix }}/bin/nvim }}"
|
||||
- name: append neovim to srcpkgs
|
||||
when: not pkgconfig.neovim.use_syspkg
|
||||
set_fact:
|
||||
srcpkgs: "{{ srcpkgs + ['neovim'] }}"
|
||||
|
||||
- name: append neovim to syspkgs
|
||||
when: ansible_system == 'Darwin'
|
||||
when: pkgconfig.neovim.use_syspkg
|
||||
set_fact:
|
||||
syspkgs: "{{ syspkgs + ['neovim'] }}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user