Increase verbosity of ansible-galaxy commands
This increases the verbosity of all ansible-galaxy calls in order to help us debugging issues such as ERROR! Unexpected Exception, this is probably a bug: Non integer values in LooseVersion ('stable/1.0.0') For example, we now see the full traceback of the exception. Change-Id: I147a9f17ae6eb3ab34bc7921c1a0f403d7f2ef0f
This commit is contained in:
parent
1b30d00155
commit
0f91779fc6
|
@ -297,11 +297,11 @@ install_ansible_collections(){
|
|||
# the collection at user level in ~/.ansible/collections, so that ansible can discover
|
||||
# it and will avoid usage of custom path.
|
||||
# https://docs.ansible.com/ansible/latest/reference_appendices/config.html#collections-paths
|
||||
ansible-galaxy collection install -f ./tripleo-repos-*.tar.gz -p ~/.ansible/collections
|
||||
ansible-galaxy collection install -vvv -f ./tripleo-repos-*.tar.gz -p ~/.ansible/collections
|
||||
rm ./tripleo-repos-*.tar.gz
|
||||
else
|
||||
ansible-galaxy collection install -v "tripleo.repos:>=0.0.4"
|
||||
ansible-galaxy collection install -v "tripleo.repos:>=0.0.4" -p ~/.ansible/collections
|
||||
ansible-galaxy collection install -vvv "tripleo.repos:>=0.0.4"
|
||||
ansible-galaxy collection install -vvv "tripleo.repos:>=0.0.4" -p ~/.ansible/collections
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
|
@ -105,7 +105,7 @@ install_ansible_collections_deps(){
|
|||
# Install ansible-collection collections cloned by CI if available
|
||||
if [[ -e ~/src/github.com/ansible-collections/ansible.utils ]]; then
|
||||
echo "Installing collections from local directories"
|
||||
ansible-galaxy collection install --force \
|
||||
ansible-galaxy collection install -vvv --force \
|
||||
~/src/github.com/ansible-collections/ansible.posix \
|
||||
~/src/github.com/ansible-collections/ansible.utils \
|
||||
~/src/github.com/ansible-collections/ansible.netcommon \
|
||||
|
@ -116,7 +116,7 @@ install_ansible_collections_deps(){
|
|||
fi
|
||||
|
||||
# Install collections from requirements file
|
||||
ansible-galaxy collection install \
|
||||
ansible-galaxy collection install -vvv \
|
||||
-r ansible-collection-requirements.yml \
|
||||
-p $VIRTUAL_ENV/share/ansible/collections
|
||||
|
||||
|
@ -125,7 +125,7 @@ install_ansible_collections_deps(){
|
|||
tripleo-operator-ansible"
|
||||
for COLLECTION_REPO in $OS_COLLECTIONS; do
|
||||
if [[ -d ~/src/opendev.org/openstack/$COLLECTION_REPO ]]; then
|
||||
ansible-galaxy collection install --force \
|
||||
ansible-galaxy collection install -vvv --force \
|
||||
~/src/opendev.org/openstack/$COLLECTION_REPO \
|
||||
-p $VIRTUAL_ENV/share/ansible/collections
|
||||
fi
|
||||
|
@ -137,12 +137,12 @@ install_ansible_roles(){
|
|||
OS_ROLES="openstack-ansible-os_tempest ansible-role-python_venv_build"
|
||||
for ROLE_REPO in $OS_ROLES; do
|
||||
if [[ -d ~/src/opendev.org/openstack/$ROLE_REPO ]]; then
|
||||
ansible-galaxy role install --force \
|
||||
ansible-galaxy role install -vvv --force \
|
||||
git+file://$HOME/src/opendev.org/openstack/$ROLE_REPO \
|
||||
-p $VIRTUAL_ENV/share/ansible/roles
|
||||
fi
|
||||
done
|
||||
ansible-galaxy role install \
|
||||
ansible-galaxy role install -vvv \
|
||||
-r ansible-role-requirements.yml \
|
||||
-p $VIRTUAL_ENV/share/ansible/roles
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue