Files
computer-playbook/roles/svc-bkp-volume-2-local/tasks/01_install.yml
kevinveenbirkenbachandClaude Opus 5.5 474849a39c fix(svc-bkp-volume-2-local): read the baudolo version from pyproject.toml
Two bots bumped the one baudolo version independently. The pip pin
updater rewrites the literal package_name pin in
roles/svc-bkp-volume-2-local/tasks/01_install.yml and opens a PR scoped
to roles/<entry>/, and dependabot bumps the same package in
pyproject.toml. Each PR alone splits the pins that
tests/lint/repository/dependencies/test_baudolo_pin.py holds equal; #995
merged such a split and turned main's test-lint red until #996, and the
next upstream release (7.1.2 is tagged) would repeat it.

The version lookup now takes an optional distribution name and returns
its exact == pin from [project.dependencies]. The install task asks it
for backup-docker-to-local, so pyproject.toml is the only place the
version lives, dependabot is the only bot that moves it, and the pip
updater no longer finds a literal to bump. The lint now forbids a
literal pin in the task and requires the lookup.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-18 21:44:40 +02:00

19 lines
493 B
YAML

---
- name: "📦 Install 'backup-docker-to-local' via pip"
include_role:
name: sys-pip-install
vars:
package_name: "backup-docker-to-local=={{ lookup('version', 'backup-docker-to-local') }}"
global_install: true
- name: ✅ Assert required baudolo commands are available
ansible.builtin.shell: "command -v {{ cmd_name }}"
loop:
- baudolo
- baudolo-seed
- baudolo-restore
loop_control:
loop_var: cmd_name
changed_when: false
when: MODE_ASSERT | bool