From 7fa68712a9bc1edc489248d975ceb29bd4f5f867 Mon Sep 17 00:00:00 2001 From: Mischa ter Smitten Date: Wed, 3 Feb 2016 11:39:43 +0100 Subject: [PATCH 1/2] Download from releases.hashicorp.com And upgrade to the latest version --- README.md | 2 +- defaults/main.yml | 2 +- tasks/main.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index af3bc89..bb72037 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ None #### Variables -* `vagrant_version` [default: `1.7.4`]: Version to install +* `vagrant_version` [default: `1.8.1`]: Version to install ## Dependencies diff --git a/defaults/main.yml b/defaults/main.yml index 5b2d361..adc7a5c 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,3 +1,3 @@ # defaults file for vagrant --- -vagrant_version: 1.7.4 +vagrant_version: 1.8.1 diff --git a/tasks/main.yml b/tasks/main.yml index 5945ed3..5ef6b4c 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -11,7 +11,7 @@ - name: download get_url: - url: "https://dl.bintray.com/mitchellh/vagrant/vagrant_{{ vagrant_version }}_{{ ansible_machine }}.deb" + url: "https://releases.hashicorp.com/vagrant/{{ vagrant_version }}/vagrant_{{ vagrant_version }}_{{ ansible_machine }}.deb" dest: "{{ vagrant_downloads_path }}/vagrant_{{ vagrant_version }}_{{ ansible_machine }}.deb" owner: root group: root From 1543348ef27cee5cec0c00a413ac9de4571eb7b2 Mon Sep 17 00:00:00 2001 From: Mischa ter Smitten Date: Wed, 3 Feb 2016 11:48:17 +0100 Subject: [PATCH 2/2] Added latest Ansible versions --- .travis.yml | 7 +++++-- tests/test.yml | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 52b495d..1d43507 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,9 @@ python: "2.7" env: - ANSIBLE_VERSION=latest + - ANSIBLE_VERSION=2.0.0.2 + - ANSIBLE_VERSION=2.0.0.1 + - ANSIBLE_VERSION=2.0.0.0 - ANSIBLE_VERSION=1.9.4 - ANSIBLE_VERSION=1.9.3 - ANSIBLE_VERSION=1.9.2 @@ -48,11 +51,11 @@ script: - ansible-playbook -i tests/inventory tests/test.yml --syntax-check # Run the role/playbook with ansible-playbook. - - ansible-playbook -i tests/inventory tests/test.yml --connection=local --sudo -vvvv + - ansible-playbook -i tests/inventory tests/test.yml -vvvv # Run the role/playbook again, checking to make sure it's idempotent. - > - ansible-playbook -i tests/inventory tests/test.yml --connection=local --sudo + ansible-playbook -i tests/inventory tests/test.yml | grep -q 'changed=0.*failed=0' && (echo 'Idempotence test: pass' && exit 0) || (echo 'Idempotence test: fail' && exit 1) diff --git a/tests/test.yml b/tests/test.yml index 2b2efac..4974be6 100644 --- a/tests/test.yml +++ b/tests/test.yml @@ -1,6 +1,7 @@ # test file for vagrant --- - hosts: localhost - remote_user: root + connection: local + sudo: true roles: - ../../