--- # tasks file for nvim - 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' - 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 }}"