Skip to content

Instantly share code, notes, and snippets.

@peterfarrell
Last active February 5, 2017 16:06
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save peterfarrell/d55ce25612e4988c083e to your computer and use it in GitHub Desktop.
Save peterfarrell/d55ce25612e4988c083e to your computer and use it in GitHub Desktop.
Install latest Vagrant with Ansible (x86_64)
- 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