mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 02:54:26 +00:00
76adaeb9e8 wrote the regex_search group reference as '\1' inside the folded
task scalar. Jinja unescapes string literals, so the filter received \x01,
rejected it as an unknown argument and failed the dev-python task on every
remote host. The literal is now '\\1', and the unit test renders the task's
environment expression the way Ansible does instead of only checking that
the variable is named.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
18 lines
556 B
YAML
18 lines
556 B
YAML
---
|
|
- name: 📂 Include dependency 'sys-pip'
|
|
include_role:
|
|
name: sys-pip
|
|
when: run_once_sys_pip is not defined
|
|
|
|
- name: 📦 Install and prefer the highest supported Python as default
|
|
ansible.builtin.script: "{{ role_path }}/files/shell/install.sh"
|
|
environment:
|
|
SKIP_DOCKER_APT_SANITIZER: "1"
|
|
INFINITO_PYTHON_REQUIRES: >-
|
|
{{ lookup('file', lookup('path_absolute', 'pyproject.toml'))
|
|
| regex_search('(?m)^requires-python\\s*=\\s*"([^"]+)"', '\\1')
|
|
| first }}
|
|
become: true
|
|
|
|
- include_tasks: utils/once/flag.yml
|