dotfiles/roles/neovim/tasks/main.yaml
Oliver Davies 8916e90050 refactor: combine with Ubuntu Provisioning repo
Combine with this repository with https://github.com/opdavies/ubuntu-provisioning
so that everything can be managed in one place, and add a role for each
piece of software.
2022-01-06 01:04:14 +00:00

27 lines
548 B
YAML

---
- name: Add neovim PPA
apt_repository:
repo: "ppa:neovim-ppa/unstable"
become: true
- name: Install Neovim
ansible.builtin.package:
name:
- neovim
state: latest
become: true
- name: Create .config/nvim directory
ansible.builtin.file:
path: "{{ ansible_user_dir }}/.config/nvim"
state: directory
- name: Configuration files
ansible.builtin.file:
src: "{{ role_path }}/files/{{ item }}"
dest: "{{ ansible_user_dir }}/.config/nvim/{{ item }}"
state: link
with_items:
- init.lua
- lua