Use PyPI for Ansible install

* Permit ansible version update on vagrant provisioning
  * Change ansible versionning in vars/*.json
This commit is contained in:
Victor LABORIE 2018-09-05 17:24:05 +02:00
parent 7823002778
commit e08ceb0ffa
4 changed files with 6 additions and 6 deletions

View File

@ -2,12 +2,12 @@
set -eu
ANSIBLE_VERSION="${ANSIBLE_VERSION:-stable-2.2}"
ANSIBLE_VERSION="${ANSIBLE_VERSION:-2.2.1.0}"
DEBIAN_FRONTEND=noninteractive apt-get -yq install build-essential python-dev python-virtualenv git
[ ! -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}"
. /tmp/venv/bin/activate && trap "deactivate" 0
exit 0
pip install "ansible==${ANSIBLE_VERSION}"

View File

@ -1,6 +1,6 @@
{
"box_name": "evolinux"
,"ansible_version": "stable-2.2"
,"ansible_version": "2.2.1.0"
,"roles_version": "9.3.1"
,"box_revision": "1"
,"debian_version": "9.5.0"

View File

@ -1,6 +1,6 @@
{
"box_name": "packmail"
,"ansible_version": "stable-2.2"
,"ansible_version": "2.2.1.0"
,"roles_version": "9.3.1"
,"box_revision": "1"
,"debian_version": "9.5.0"

View File

@ -1,6 +1,6 @@
{
"box_name": "packweb"
,"ansible_version": "stable-2.2"
,"ansible_version": "2.2.1.0"
,"roles_version": "9.3.1"
,"box_revision": "1"
,"debian_version": "9.5.0"