---
- name: Clean up the APT cache
  command: apt-get clean

- name: Clean out /tmp
  shell: rm -f /tmp/*.zip /tmp/*.deb /tmp/*.gz /tmp/*.bz2 /tmp/*.lisp /tmp/*.sh
  ignore_errors: yes

- name: Clean out the Oracle Java installer's cache
  file: path=/var/cache/oracle-jdk{{ item }}-installer state=absent
  with_items:
    - 7
    - 8

- name: Zero out the disk
  shell: dd if=/dev/zero of=/EMPTY bs=1M; rm -f /EMPTY
  ignore_errors: yes

---
- name: Clean up the APT cache
  command: apt-get clean

- name: Clean out /tmp
  shell: rm -f /tmp/*.zip /tmp/*.deb /tmp/*.gz /tmp/*.bz2 /tmp/*.lisp /tmp/*.sh
  ignore_errors: yes

- name: Clean out the Oracle Java installer's cache
  file: path=/var/cache/oracle-jdk{{ item }}-installer state=absent
  with_items:
    - 7
    - 8

- name: Delete the VirtualBox additions ISO
  file: path=/home/vagrant/VBoxGuestAdditions.iso state=absent

- name: Zero out the disk
  shell: dd if=/dev/zero of=/EMPTY bs=1M; rm -f /EMPTY
  ignore_errors: yes

Add extra check to delete VBox guest additions ISO if uploaded from local copy by Vagrant.
Add extra check to delete VBox guest additions ISO if uploaded from local copy by Vagrant.
