fix: 2.12+ test requirements install

Signed-off-by: gardar <gardar@users.noreply.github.com>
This commit is contained in:
gardar 2023-03-08 16:17:01 +00:00
parent 893047098e
commit 7548c41247
No known key found for this signature in database
GPG key ID: 75FAE37CBA8C13C2

View file

@ -23,6 +23,8 @@ fi
# Install ansible version specific requirements # Install ansible version specific requirements
if [ "$(printf '%s\n' "2.12" "$ansible_version" | sort -V | head -n1)" = "2.12" ]; then if [ "$(printf '%s\n' "2.12" "$ansible_version" | sort -V | head -n1)" = "2.12" ]; then
python -m pip install molecule molecule-plugins[docker] python -m pip install molecule molecule-plugins[docker]
ansible-galaxy collection install git+https://github.com/ansible-collections/community.docker.git
ansible-galaxy collection install -r "$collection_root/requirements.yml"
elif [ "$(printf '%s\n' "2.10" "$ansible_version" | sort -V | head -n1)" = "2.10" ]; then elif [ "$(printf '%s\n' "2.10" "$ansible_version" | sort -V | head -n1)" = "2.10" ]; then
python -m pip install molecule molecule-docker python -m pip install molecule molecule-docker
ansible-galaxy collection install git+https://github.com/ansible-collections/community.docker.git ansible-galaxy collection install git+https://github.com/ansible-collections/community.docker.git