split into roles
This commit is contained in:
parent
4d072894ec
commit
74b67b7e27
17 changed files with 186 additions and 110 deletions
38
roles/neovim/tasks/main.yml
Normal file
38
roles/neovim/tasks/main.yml
Normal 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
|
Reference in a new issue