Add ansible-requirements as a constraint in CI

This change will ensure that the ansible-requirements.txt file is used
in molecule jobs as a constraint when creating a test environment.

Change-Id: I81b8201e17f8d2c0300f3518d6974e4ea2655ca0
Signed-off-by: Kevin Carter <kecarter@redhat.com>
(cherry picked from commit 6b6f4b5fb3)
This commit is contained in:
Kevin Carter 2020-09-29 11:06:55 -05:00 committed by Emilien Macchi
parent 80735d0d66
commit cc13e4224f
1 changed files with 8 additions and 0 deletions

View File

@ -41,6 +41,14 @@
virtualenv: "{{ ansible_user_dir }}/test-python"
virtualenv_command: "{{ ensure_pip_virtualenv_command }}"
virtualenv_site_packages: true
extra_args: >-
--constraint "{{ tripleo_ansible_project_path }}/ansible-requirements.txt"
- name: Display test-python virtualenv package versions
shell: |-
. {{ ansible_user_dir }}/test-python/bin/activate
pip freeze
# NOTE(cloudnull): This is being done because docker is not supported on RHEL-8
# and tests within this repo still require docker.
- name: Manual install container.io