- creating src packages when things can't be installed via actual system package - neovim srcpkg is being worked on now
37 lines
935 B
YAML
37 lines
935 B
YAML
- ansible.builtin.include_vars:
|
|
file: neovim.yml
|
|
name: _neovim
|
|
|
|
- name: create temp path
|
|
ansible.builtin.tempfile:
|
|
state: directory
|
|
prefix: nvim.
|
|
register: d_nvim_tmp
|
|
|
|
- name: clone neovim git repository
|
|
ansible.builtin.git:
|
|
depth: 1
|
|
dest: "{{ d_nvim_tmp.path }}/neovim"
|
|
repo: "{{ _neovim.git_repo }}"
|
|
version: "v{{ _neovim.version }}"
|
|
|
|
- name: build neovim
|
|
ansible.builtin.command:
|
|
chdir: "{{ d_nvim_tmp.path }}/neovim"
|
|
cmd:
|
|
- make
|
|
- "CMAKE_BUILD_Type={{ _neovim.build_type }}"
|
|
- "CMAKE_INSTALL_PREFIX={{ _neovim.install_prefix }}"
|
|
|
|
- name: install neovim appimage
|
|
become: true
|
|
ansible.builtin.get_url:
|
|
url: https://github.com/neovim/neovim/releases/download/v{{ _neovim.version }}/nvim.appimage
|
|
dest: /usr/local/bin/nvim
|
|
checksum: sha256:6a021e9465fe3d3375e28c3e94c1c2c4f7d1a5a67e4a78cf52d18d77b1471390
|
|
tags:
|
|
- RedHat
|
|
- linux
|
|
- package
|
|
|