split into roles

This commit is contained in:
Pim Kunis 2022-12-02 20:10:38 +01:00
parent 4d072894ec
commit 74b67b7e27
17 changed files with 186 additions and 110 deletions

View file

@ -0,0 +1,38 @@
- name: Install prerequisite APT packages
# https://github.com/neovim/neovim/wiki/Building-Neovim#build-prerequisites
become: true
apt:
state: latest
update_cache: yes
cache_valid_time: 86400 # One day
pkg:
- ninja-build
- gettext
- libtool
- libtool-bin
- autoconf
- automake
- cmake
- g++
- pkg-config
- unzip
- curl
- doxygen
- name: Pull neovim repository
become: true
git:
repo: https://github.com/neovim/neovim.git
dest: ~/neovim
- name: Build neovim
become: true
make:
chdir: ~/neovim
params:
CMAKE_BUILD_TYPE: RelWithDebInfo
changed_when: false # I lie a bit, but neovim makefile doesn't cooperate
- name: Install neovim
become: true
make:
chdir: ~/neovim
target: install
changed_when: false # Idem