Packer templates for building Vagrant boxes customized by Evolix.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

12 lines
342 B

#!/bin/sh
set -eu
ANSIBLE_VERSION="${ANSIBLE_VERSION:-stable-2.2}"
DEBIAN_FRONTEND=noninteractive apt-get -yq install build-essential python-dev python-virtualenv git
if [ ! -d venv ]; then
virtualenv /tmp/venv
. /tmp/venv/bin/activate && pip install "git+https://github.com/ansible/ansible.git@${ANSIBLE_VERSION}"; deactivate
fi