13 lines
342 B
Bash
Executable file
13 lines
342 B
Bash
Executable file
#!/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
|