mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 10:59:59 +00:00
Twelve callers load their scripts with the relative form
lookup('file', 'name.py'), which resolves against the role's files/
directory. dfe7a7fdd moved those scripts into files/python/ without
updating them, so the MCP provisioning and probes of baserow, checkmk,
flowise, gitlab, homeassistant, jellyfin, n8n, openwebui and pretix, plus
n8n's AI gateway task, all resolved a path that no longer exists.
This is the second time the same relocation left callers behind. After
2aec4326a fixed the php paths, the claim that no stale references remained
came from grepping the worktree, which already carried the corrected paths;
HEAD still held the old ones. The check has to run against the commit.
Verified against HEAD this time: the eleven remaining stale relative lookups
are exactly the files in this bundle, and no other loading form (copy src,
script) carries a stale path.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
31 lines
943 B
YAML
31 lines
943 B
YAML
---
|
|
- name: "🩺 Ask the instance whether the stored token still authenticates"
|
|
ansible.builtin.command:
|
|
argv:
|
|
- container
|
|
- exec
|
|
- -i
|
|
- -e
|
|
- "GITLAB_MCP_HOST={{ GITLAB_WORKHORSE_SERVICE_NAME }}"
|
|
- -e
|
|
- "GITLAB_MCP_PORT={{ GITLAB_WORKHORSE_PORT }}"
|
|
- -e
|
|
- "GITLAB_MCP_PATH={{ GITLAB_MCP_PATH }}"
|
|
- -e
|
|
- "GITLAB_MCP_PROTOCOL_VERSION={{ GITLAB_MCP_PROTOCOL_VERSION }}"
|
|
- -e
|
|
- "GITLAB_MCP_TOKEN={{ gitlab_mcp_token }}"
|
|
- "{{ GITLAB_MCP_LOCAL_CID }}" # nocheck: container-exec-resolver
|
|
- ruby
|
|
- "-"
|
|
stdin: "{{ lookup('file', 'ruby/probe_mcp_token.rb') }}"
|
|
register: gitlab_mcp_probe
|
|
retries: 30
|
|
delay: 10
|
|
until: gitlab_mcp_probe.rc == 0 or 'REJECTED' in gitlab_mcp_probe.stderr
|
|
failed_when: false
|
|
changed_when: false
|
|
no_log: "{{ MASK_CREDENTIALS_IN_LOGS | bool }}"
|
|
delegate_to: "{{ GITLAB_MCP_HOST_NODE }}"
|
|
run_once: true
|