--- - name: Install vim ansible.builtin.apt: name: vim-nox state: present # use the `copy` module to copy files to the remote host - name: Configure vim ansible.builtin.copy: src: vimrc dest: /etc/vim/vimrc owner: root group: root mode: "0650"