--- - 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 - name: user owns packer ansible.builtin.file: path: "/home/{{ user.username }}/.local/share/nvim/site/pack/packer/start/packer.nvim" owner: "{{ user.username }}"