Last active
February 5, 2017 16:06
-
-
Save peterfarrell/d55ce25612e4988c083e to your computer and use it in GitHub Desktop.
Install latest Vagrant with Ansible (x86_64)
This file contains 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