--- - name: Install the vagrant packages and requirements apt: name={{ item }} state={{ pkg_state }} with_items: vagrant_package_list tags: vagrant - name: Get the package from the vagrant site get_url: url='{{ vagrant_url }}' dest=/opt/vagrant_{{ vagrant_site_version }}_x86_64.deb when: vagrant_package_from_site tags: vagrant - name: Install the package from the vagrant site apt: deb=/opt/vagrant_{{ vagrant_site_version }}_x86_64.deb when: vagrant_package_from_site tags: vagrant