Skip to content

Instantly share code, notes, and snippets.

@dschep
Forked from rmetzler/install_vagrant.yml
Last active August 29, 2015 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dschep/b73ec5777151e99ebbf3 to your computer and use it in GitHub Desktop.
Save dschep/b73ec5777151e99ebbf3 to your computer and use it in GitHub Desktop.
- name: Compute Vagrant latest version
sudo: no
shell: wget -qO - https://dl.bintray.com/mitchellh/vagrant/|sed -n 's/.*href=\"\([^"]*\).*/\1/p'|grep x86_64\.deb|tail -1|cut -d'%' -f2
register: vagrant_file_name
- name: Download Vagrant latest version
sudo: no
get_url: url="https://dl.bintray.com/mitchellh/vagrant/{{ vagrant_file_name.stdout }}" dest="/tmp/{{ vagrant_file_name.stdout }}"
- name: Install Vagrant latest version
sudo: yes
apt: deb='/tmp/{{ vagrant_file_name.stdout }}' state=present
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment