Skip to content

Instantly share code, notes, and snippets.

@toke
Last active October 27, 2017 13:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toke/d5de03c70c9c7f1a2ec6acd7a9e3753a to your computer and use it in GitHub Desktop.
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
---
- 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 }}
#!/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
# -*- 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