2018-09-03 16:39:18 +02:00
|
|
|
#!/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
|
|
|
|
|
2018-09-05 15:24:19 +02:00
|
|
|
[ ! -f "/tmp/venv/bin/activate" ] && virtualenv /tmp/venv
|
|
|
|
|
|
|
|
[ ! -x "/tmp/venv/bin/ansible" ] && . /tmp/venv/bin/activate && pip install "git+https://github.com/ansible/ansible.git@${ANSIBLE_VERSION}"
|
|
|
|
|
|
|
|
exit 0
|