Dot_Files/roles/nvim/tasks/main.yml

33 lines
767 B
YAML
Raw Normal View History

2022-08-01 19:02:09 -05:00
---
# tasks file for nvim
2022-08-01 21:03:44 -05:00
- name: Check unix os
ansible.builtin.command: uname
ignore_errors: true
changed_when: false
register: uname
- name: Install Neovim for Linux
ansible.builtin.include_tasks: install-nvim.yml
when: uname.stdout == 'Linux'
- name: Install Neovim for MacOS
ansible.builtin.include_tasks: install-nvim.yml
vars:
nvim_platform: "macos"
when: uname.stdout == 'Darwin'
2022-08-01 23:41:47 -05:00
- name: Install Rust
ansible.builtin.import_tasks: install-rust.yml
- name: Install Neovim Rust dependencies
community.general.cargo:
name:
- bat
- fd-find
- ripgrep
state: present
environment:
PATH: "{{ ansible_env.PATH }}:{{ cargo_home }}/bin"
CARGO_HOME: "{{ cargo_home }}"
RUSTUP_HOME: "{{ rustup_home }}"