Merge "Make collections installation more reliable"

This commit is contained in:
Zuul 2020-10-19 21:40:11 +00:00 committed by Gerrit Code Review
commit 47e5a90a7f
3 changed files with 19 additions and 14 deletions

View File

@ -1,19 +1,21 @@
collections:
# NOTE(noonedeadpunk): needs galaxy.yml to be able to pull from git
- name: openstack.cloud
version: 1.0.0
version: 1.2.0
source: https://galaxy.ansible.com
- name: community.general
version: 1.1.0
source: https://galaxy.ansible.com
- name: community.rabbitmq
- name: https://github.com/ansible-collections/community.general
version: 1.2.0
type: git
- name: https://github.com/ansible-collections/community.rabbitmq
version: 1.0.1
source: https://galaxy.ansible.com
- name: community.mysql
version: 1.0.0
source: https://galaxy.ansible.com
- name: community.crypto
version: 1.1.1
source: https://galaxy.ansible.com
type: git
- name: https://github.com/ansible-collections/community.mysql
version: 1.1.0
type: git
- name: https://github.com/ansible-collections/community.crypto
version: 1.2.0
type: git
# NOTE(noonedeadpunk): needs version in galaxy.yml to pull from git
- name: openvswitch.openvswitch
version: 1.0.5
source: https://galaxy.ansible.com

View File

@ -22,7 +22,7 @@ set -e -u -x
export HTTP_PROXY=${HTTP_PROXY:-""}
export HTTPS_PROXY=${HTTPS_PROXY:-""}
# The Ansible version used for testing
export ANSIBLE_PACKAGE=${ANSIBLE_PACKAGE:-"ansible-base==2.10.1"}
export ANSIBLE_PACKAGE=${ANSIBLE_PACKAGE:-"ansible-base==2.10.2"}
export ANSIBLE_ROLE_FILE=${ANSIBLE_ROLE_FILE:-"ansible-role-requirements.yml"}
export ANSIBLE_COLLECTION_FILE=${ANSIBLE_COLLECTION_FILE:-"ansible-collection-requirements.yml"}
export USER_ROLE_FILE=${USER_ROLE_FILE:-"user-role-requirements.yml"}

View File

@ -53,10 +53,13 @@
- name: Install collection requirements with ansible galaxy
command: >
/opt/ansible-runtime/bin/ansible-galaxy collection install
/opt/ansible-runtime/bin/ansible-galaxy collection install --force
-r "{{ collection_requirements_tmpfile.path }}"
-p "{{ collection_path_default }}"
register: collection_install
until: collection_install is success
retries: 5
delay: 2
- name: Show collection install output
debug: msg="{{ collection_install.stdout.split('\n') }}"