Add requirements.yml, a Kamino-owned file with exact pins for the collections the roles call (community.general 14.0.0, ansible.posix 2.2.2), and install it into /opt/collections of the ci image (#118). Lint sets ANSIBLE_COLLECTIONS_PATH to it, so ansible-lint --offline resolves the modules and mock_modules is dropped. The file joins /opt/ci-pins.sha256: a pull request that changes a pin installs the collections for its own run, as it does for requirements-dev.txt. mock_roles stays (step 5 of #118). The install scopes ANSIBLE_COLLECTIONS_PATH to its target: ansible-galaxy skips a collection it finds elsewhere on the path as already installed, so the image would otherwise miss any that the build host happens to have. Image input: ci 0.2.15 -> 0.2.16 (one bump for this change and the ruff and shellcheck hooks of #112, which are also baked into the image). requirements.yml is added to the image.yml push paths so that a pin change rebuilds the image. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
14 lines
687 B
YAML
14 lines
687 B
YAML
---
|
|
# Collections the roles of this Collection call (the dependencies of galaxy.yml, pinned exactly).
|
|
# galaxy.yml holds the lower bounds a consumer needs; this file holds the versions CI tests
|
|
# against. One file feeds every consumer, so they cannot drift apart:
|
|
# - the ci image (images/ci/Dockerfile) bakes it into /opt/collections for Lint;
|
|
# - the Molecule job (.gitea/workflows/molecule.yml) installs it for the scenarios;
|
|
# - scripts/dev-setup.sh installs it into .ansible/collections for local lint.
|
|
# Renovate (renovate.json, ansible-galaxy manager) bumps these pins.
|
|
collections:
|
|
- name: community.general
|
|
version: 14.0.0
|
|
- name: ansible.posix
|
|
version: 2.2.2
|