Last active
October 27, 2017 13:15
-
-
Save toke/d5de03c70c9c7f1a2ec6acd7a9e3753a to your computer and use it in GitHub Desktop.
Ansible Issue 30753 (https://github.com/ansible/ansible/issues/30753) Testcase using Vagrant against Debian Wheezy
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
--- | |
- hosts: all | |
tasks: | |
- name: vars | |
debug: | |
msg: | | |
Ansible: {{ ansible_version.full }} | |
OS: {{ ansible_distribution }} {{ ansible_distribution_version }} {{ ansible_distribution_release }} | |
Service_mgr: {{ ansible_service_mgr }} |
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
#!/usr/bin/env bash | |
set -e | |
TEST_REFS="v2.3.2.0-1 v2.4.1.0-0.3.rc1" | |
VIRTUALENV="env" | |
vagrant up --no-provision | |
virtualenv "${VIRTUALENV}" | |
source env/bin/activate | |
for ref in $TEST_REFS ; do | |
pip install git+https://github.com/ansible/ansible.git@${ref} | |
echo -e "\nTESTING ${ref}\n\n" | |
vagrant provision | |
echo "cleaning up" | |
virtualenv --clear "${VIRTUALENV}" | |
done | |
deactivate | |
rm -r "${VIRTUALENV}" | |
vagrant destroy |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "debian/wheezy64" | |
config.vm.provision :ansible do |ansible| | |
ansible.playbook = "playbook.yml" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment