Skip to content

Commit b261be3

Browse files
authored
Pin collections to latest ansible 2.15 compatible versions (#1747)
ansible.utils just released a new version that is incompatible with ansible-2.15 (ansible-collections/ansible.utils@7059201) and this results in: ``` TASK [common : Show networks data for debugging (common role)] ***************** task path: /home/dev-scripts/metal3-dev-env/vm-setup/roles/common/tasks/main.yml:42 [WARNING]: Collection ansible.netcommon does not support Ansible version 2.15.12 [WARNING]: Collection ansible.utils does not support Ansible version 2.15.12 redirecting (type: filter) ansible.builtin.nthhost to ansible.netcommon.nthhost redirecting (type: filter) ansible.builtin.nthhost to ansible.netcommon.nthhost ``` this is a proposal to pin these collections until we can upgrade to 2.16. Signed-off-by: Luca Miccini <[email protected]>
1 parent 83055f3 commit b261be3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

01_install_requirements.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,9 @@ sudo python -m pip install ansible=="${ANSIBLE_VERSION}"
135135

136136
pushd ${METAL3_DEV_ENV_PATH}
137137
ansible-galaxy install -r vm-setup/requirements.yml
138-
ansible-galaxy collection install --upgrade ansible.netcommon ansible.posix ansible.utils community.general
138+
# Let's temporarily pin these collections to the latest compatible with ansible-2.15
139+
#ansible-galaxy collection install --upgrade ansible.netcommon ansible.posix ansible.utils community.general
140+
ansible-galaxy collection install 'ansible.netcommon<=7.2.0' ansible.posix 'ansible.utils<=5.1.2' community.general
139141
ANSIBLE_FORCE_COLOR=true ansible-playbook \
140142
-e "working_dir=$WORKING_DIR" \
141143
-e "virthost=$HOSTNAME" \

0 commit comments

Comments
 (0)