Add neovim deb file download

This commit is contained in:
flyingscorpio@clevo 2022-08-12 02:11:24 +02:00
parent c821dbe66f
commit ecd59842e5

View file

@ -40,13 +40,31 @@
when:
ansible_facts['distribution'] == 'Archlinux'
- name: Grab neovim deb package (Debian)
block:
- name: Find latest neovim version
uri:
url: https://github.com/neovim/neovim/releases/latest
register: latest_http_content
- name: Set latest neovim version
set_fact:
neovim_version: "{{ latest_http_content.url | split('/') | last }}"
# TODO: Find if latest neovim is installed (dpkg command)
- name: Get latest neovim deb package
get_url:
url: "https://github.com/neovim/neovim/releases/download/{{ neovim_version }}/nvim-linux64.deb"
checksum: "sha256:https://github.com/neovim/neovim/releases/download/{{ neovim_version }}/nvim-linux64.deb.sha256sum"
dest: /tmp/nvim-linux64.deb
mode: 0644
when:
ansible_facts['distribution'] == 'Debian'
- name: Install (Debian)
block:
- name: Install neovim deb package (Debian)
become: true
apt:
deb: /tmp/nvim-linux64.deb
# TODO: Download and check the package
- name: Install things with apt (Debian)
become: true
apt: