configuring more packages
This commit is contained in:
34
tasks/pkgs/neovim.yml
Normal file
34
tasks/pkgs/neovim.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
- 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'] }}"
|
||||
|
||||
Reference in New Issue
Block a user