---
- name: Install vim
  apt:
    name: vim-nox
    state: latest
# use the `copy` module to copy files to the remote host
- name: Configure vim
  copy:
    src: vimrc
    dest: /etc/vim/vimrc
    owner: root
    group: root