Create new yttrx specific playbook

This commit is contained in:
waffles
2023-01-23 08:53:49 -08:00
parent 9d5f83c909
commit 75a9b9701f
5 changed files with 56 additions and 6 deletions
+46
View File
@@ -0,0 +1,46 @@
---
# tasks file for yttrx-nvim
- name: Create nvim appimage directory
file:
path: /opt/nvim
state: directory
mode: 0755
- name: Download neovim appimage from github
ansible.builtin.get_url:
url: https://github.com/neovim/neovim/releases/download/v0.8.2/nvim.appimage
dest: /opt/nvim/nvim.appimage
- name: Ensure that nvim.appimage is executable
file:
path: /opt/nvim/nvim.appimage
mode: 0755
- name: Create symlink to nvim.appimage
file:
src: /opt/nvim/nvim.appimage
dest: /usr/local/bin/nvim
state: link
- name: check if lazy.vim exists
stat:
path: /root/.config/nvim
register: lazyvim_check
- name: Clone lazy.vim for user root
ansible.builtin.git:
repo: https://github.com/LazyVim/starter
dest: /root/.config/nvim
when: not lazyvim_check.stat.exists
# Needed by lazy.vim
- name: Install unzip
package:
name: unzip
state: present
- name: Install python3.10-venv
package:
name: python3.10-venv
state: present