Ansible_workstation/roles/user/tasks/neovim.yml

25 lines
619 B
YAML
Raw Normal View History

2022-01-12 05:06:12 +00:00
---
- name: Install neovim
community.general.pacman:
name: neovim
state: present
when: ansible_os_family == "Archlinux"
- name: Install neovim
apt:
name: neovim
state: present
when: ansible_os_family == "Debian"
- name: Install packer
ansible.builtin.git:
repo: "https://github.com/wbthomason/packer.nvim"
dest: "/home/{{ user.username }}/.local/share/nvim/site/pack/packer/start/packer.nvim"
depth: 1
- name: user owns packer
ansible.builtin.file:
path: "/home/{{ user.username }}/.local/share/nvim/site/pack/packer/start/packer.nvim"
owner: "{{ user.username }}"