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

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