---
- hosts: workstation

  tasks:
    - name: install virtualbox
      mac_pkg: pkg_name=org.virtualbox.pkg.virtualbox pkg_version=4.2.18
               url=http://download.virtualbox.org/virtualbox/4.2.18/VirtualBox-4.2.18-88780-OSX.dmg
               archive_type=dmg archive_path=VirtualBox.pkg
      sudo: yes


---
- hosts: workstation

  tasks:
    - name: install virtualbox
      mac_pkg: pkg_name=org.virtualbox.pkg.virtualbox pkg_version=4.3.0
               url=http://download.virtualbox.org/virtualbox/4.3.0/VirtualBox-4.3.0-89960-OSX.dmg
               archive_type=dmg archive_path=VirtualBox.pkg
      sudo: yes


Update virtual box to 4.3.0
Update virtual box to 4.3.0