Bump up Ansible to 4.x
As per [1] and [2] - Ansible versions prior to 4 are not maintained. [1]: https://docs.ansible.com/ansible/devel/reference_appendices/release_and_maintenance.html#ansible-community-package-release-cycle [2]: https://docs.ansible.com/ansible/devel/reference_appendices/release_and_maintenance.html#ansible-core-release-cycle Change-Id: I06cf6723361010e0a7c6eb07f2d9e570192cd9a4
This commit is contained in:
parent
c6d16b72ec
commit
72ad77f914
4
releasenotes/notes/ansible-4-1e08eb3acd1768fe.yaml
Normal file
4
releasenotes/notes/ansible-4-1e08eb3acd1768fe.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
Ansible 4 is now supported and used by default.
|
@ -6,7 +6,7 @@ set -euo pipefail
|
||||
# NOTE(pas-ha) the above exports some useful variables like
|
||||
# $PYTHON , $PIP and $VENV depending on venv install or not
|
||||
|
||||
DEFAULT_PIP_ANSIBLE='>=2.9,<2.11'
|
||||
DEFAULT_PIP_ANSIBLE='>=4,<5'
|
||||
|
||||
ANSIBLE_COLLECTIONS_REQ=${ANSIBLE_COLLECTIONS_REQ:-$(dirname $0)/../ansible-collections-requirements.yml}
|
||||
ANSIBLE_COLLECTION_SOURCE_PATH=
|
||||
@ -25,6 +25,7 @@ ANSIBLE=${VENV}/bin/ansible
|
||||
if [ -f "$ANSIBLE" ]; then
|
||||
${PIP} uninstall -y ansible
|
||||
${PIP} uninstall -y ansible-base
|
||||
${PIP} uninstall -y ansible-core
|
||||
fi
|
||||
${PIP} install "${ANSIBLE_SOURCE_PATH}"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user