35 lines
936 B
YAML
35 lines
936 B
YAML
---
|
|
- ansible.builtin.include_vars:
|
|
file: neovim.yml
|
|
name: _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 syspkgs
|
|
when: ansible_system == 'Darwin'
|
|
set_fact:
|
|
syspkgs: "{{ syspkgs + ['neovim'] }}"
|
|
|