- hosts: all
  name: APT

  tasks:

    - name: Refresh APT repo
      # Only run "update_cache=yes" if the last one is more than 3600 seconds ago
      apt: update_cache=yes cache_valid_time=3600
      sudo: yes
- hosts: all
  name: APT

  tasks:

    - name: Refresh APT repo
      # Only run "update_cache=yes" if the last one is more than 3600 seconds ago
      apt: update_cache=yes cache_valid_time=3600
      sudo: yes

    - name: Install VIM
      apt: pkg={{ item }} state=installed update_cache=true install_recommends=yes
      sudo: yes
      with_items:
        - vim
Install vim on the virtual
Install vim on the virtual
