--- - name: Install neovim community.general.pacman: name: neovim state: present when: ansible_os_family == "Archlinux" - name: Install neovim apt: name: neovim state: present when: ansible_os_family == "Debian" - name: Install packer ansible.builtin.git: repo: "https://github.com/wbthomason/packer.nvim" dest: "/home/{{ user.username }}/.local/share/nvim/site/pack/packer/start/packer.nvim" depth: 1 become: true become_user: "{{ user.username }}"