diff --git a/.github/workflows/ansible-test.yml b/.github/workflows/ansible-test.yml index e2a5e30ac..acc2aa9f1 100644 --- a/.github/workflows/ansible-test.yml +++ b/.github/workflows/ansible-test.yml @@ -101,6 +101,10 @@ jobs: - '' target: - '' + extra-constraints: + # Specifying this other than '' likely destroys change detection, but at least it will make + # CI pass when necessary... + - '' exclude: - ansible: '' include: @@ -117,6 +121,7 @@ jobs: docker: alpine3 python: '' target: azp/4/ + extra-constraints: urllib3 < 2.0.0 - ansible: '2.11' docker: alpine3 python: '' @@ -144,6 +149,7 @@ jobs: git clone --depth=1 --single-branch https://github.com/ansible-collections/community.crypto.git ../../community/crypto ; git clone --depth=1 --single-branch https://github.com/ansible-collections/community.general.git ../../community/general + ${{ matrix.extra-constraints && format('; echo "\'{0}\'" >> tests/utils/constraints.txt', matrix.extra-constraints) || '' }} pull-request-change-detection: 'true' target: ${{ matrix.target }} target-python-version: ${{ matrix.python }}