Forked from peterfarrell/install_latest_vagrant_via_ansible
Last active
August 29, 2015 14:23
-
-
Save rmetzler/8e7e64c0fc1623e4cab7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Compute Vagrant latest version | |
sudo: yes | |
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 | |
shell: "wget https://dl.bintray.com/mitchellh/vagrant/{{ vagrant_file_name.stdout }} -O {{ vagrant_file_name.stdout }}" | |
args: | |
chdir: "./bootstrap/files" | |
creates: "{{ vagrant_file_name.stdout }}" | |
- name: Install Vagrant latest version | |
sudo: yes | |
apt: deb='./bootstrap/files/{{ vagrant_file_name.stdout }}' state=present |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment