--- - name: Install Neovim on macOS via Homebrew homebrew: name: neovim state: present become: no when: ansible_os_family == "Darwin" - name: Add Neovim PPA on Debian/Ubuntu apt_repository: repo: ppa:neovim-ppa/unstable state: present update_cache: yes when: ansible_os_family == "Debian" - name: Install Neovim on Debian/Ubuntu apt: name: neovim state: present when: ansible_os_family == "Debian" - name: Install Neovim on RedHat/CentOS/Fedora package: name: neovim state: present when: ansible_os_family == "RedHat" - name: Install Neovim on Arch Linux pacman: name: neovim state: present when: ansible_os_family == "Archlinux"