From 47bea9150cd174053157afdf287e0d0e2be9f1e4 Mon Sep 17 00:00:00 2001 From: Ivan Date: Sat, 20 Jan 2024 11:55:32 +0500 Subject: [PATCH] feat: add neovim playbook --- playbooks/neovim.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 playbooks/neovim.yml diff --git a/playbooks/neovim.yml b/playbooks/neovim.yml new file mode 100644 index 0000000..d7bc811 --- /dev/null +++ b/playbooks/neovim.yml @@ -0,0 +1,31 @@ +- name: Install neovim from source + hosts: odhosts + tasks: + - name: Clone neovim repository + ansible.builtin.git: + repo: https://github.com/neovim/neovim + dest: "{{ ansible_env.HOME }}/src/neovim" + version: v0.9.5 + - name: Install build dependencies + become: true + ansible.builtin.apt: + pkg: + - ninja-build + - gettext + - cmake + - unzip + - curl + - name: Build neovim + community.general.make: + chdir: "{{ ansible_env.HOME }}/src/neovim" + params: + CMAKE_BUILD_TYPE: Release + - name: Install neovim + become: true + community.general.make: + chdir: "{{ ansible_env.HOME }}/src/neovim" + target: install + - name: Clone my neovim configuration + ansible.builtin.git: + repo: https://github.com/ordinary-dev/ordinary-neovim + dest: "{{ ansible_env.HOME }}/.config/nvim"