From 78ac79164bea5606bf93e5173c8e70233755256b Mon Sep 17 00:00:00 2001 From: Jonathan Rosser Date: Wed, 8 Apr 2020 10:43:53 +0100 Subject: [PATCH] Add ansible openstack collection This requires at least ansible version 2.9. A new requirements file is added to specify collections, and the env-prep script is modified to install the openstack collection into the default collection location. Change-Id: I90b7ca4ea9491c3de197cbc4df83f7f959dd9571 --- test-ansible-collection-requirements.yml | 4 ++++ test-ansible-env-prep.sh | 3 +++ 2 files changed, 7 insertions(+) create mode 100644 test-ansible-collection-requirements.yml diff --git a/test-ansible-collection-requirements.yml b/test-ansible-collection-requirements.yml new file mode 100644 index 00000000..3f142117 --- /dev/null +++ b/test-ansible-collection-requirements.yml @@ -0,0 +1,4 @@ +collections: + - name: openstack.cloud + version: 1.0.0 + source: https://galaxy.ansible.com diff --git a/test-ansible-env-prep.sh b/test-ansible-env-prep.sh index dd7dfe83..21724b27 100755 --- a/test-ansible-env-prep.sh +++ b/test-ansible-env-prep.sh @@ -211,6 +211,9 @@ fi # Install all python packages python -m pip install ${PIP_OPTS} +# Install all ansible collections +ansible-galaxy collection install -r ${COMMON_TESTS_PATH}/test-ansible-collection-requirements.yml + # Download the Ansible role repositories if they are not present on the host. # This is ignored if there is no ansible-role-requirements file. if [[ ! -d "${ANSIBLE_ROLE_DEP_DIR}" ]]; then