Use PyPI for Ansible install
* Permit ansible version update on vagrant provisioning * Change ansible versionning in vars/*.json
This commit is contained in:
parent
7823002778
commit
e08ceb0ffa
|
@ -2,12 +2,12 @@
|
||||||
|
|
||||||
set -eu
|
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
|
DEBIAN_FRONTEND=noninteractive apt-get -yq install build-essential python-dev python-virtualenv git
|
||||||
|
|
||||||
[ ! -f "/tmp/venv/bin/activate" ] && virtualenv /tmp/venv
|
[ ! -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}"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"box_name": "evolinux"
|
"box_name": "evolinux"
|
||||||
,"ansible_version": "stable-2.2"
|
,"ansible_version": "2.2.1.0"
|
||||||
,"roles_version": "9.3.1"
|
,"roles_version": "9.3.1"
|
||||||
,"box_revision": "1"
|
,"box_revision": "1"
|
||||||
,"debian_version": "9.5.0"
|
,"debian_version": "9.5.0"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"box_name": "packmail"
|
"box_name": "packmail"
|
||||||
,"ansible_version": "stable-2.2"
|
,"ansible_version": "2.2.1.0"
|
||||||
,"roles_version": "9.3.1"
|
,"roles_version": "9.3.1"
|
||||||
,"box_revision": "1"
|
,"box_revision": "1"
|
||||||
,"debian_version": "9.5.0"
|
,"debian_version": "9.5.0"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"box_name": "packweb"
|
"box_name": "packweb"
|
||||||
,"ansible_version": "stable-2.2"
|
,"ansible_version": "2.2.1.0"
|
||||||
,"roles_version": "9.3.1"
|
,"roles_version": "9.3.1"
|
||||||
,"box_revision": "1"
|
,"box_revision": "1"
|
||||||
,"debian_version": "9.5.0"
|
,"debian_version": "9.5.0"
|
||||||
|
|
Loading…
Reference in a new issue