--- # 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'