--- - name: ensure copr command installed become: yes become_method: sudo dnf: name: - dnf-command(copr) state: latest - name: Add neovim-nightly copr become: yes become_method: sudo when: - nightly_neovim == true command: cmd: dnf copr enable -y agriffis/neovim-nightly warn: false creates: /etc/yum.repos.d/_copr_agriffis_neovim-nightly.repo - name: Install neovim-nightly become: yes become_method: sudo when: - nightly_neovim == true dnf: name: - neovim state: latest