fix(roles): follow the php scripts to their new folder

The relocation in dfe7a7fdd moved provision_mcp.php,
provision_mcp_identity.php and the ai_engine pair into files/php/ but left
their callers pointing at the old locations, so moodle's and snipe-it's MCP
provisioning and wordpress's AI Engine configuration resolved a path that
no longer exists.

The reference sweep that accompanied the move searched for python, shell,
ruby and sql folders and never looked for php, so these four lookups were
missed.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
kevinveenbirkenbachandClaude Opus 5 committed 2026-08-28 12:04:52 +02:00
1 parent 54a6f3b533
commit 2aec4326a8
3 files changed
+4 -4

No files matched your search

@@ -14,7 +14,7 @@
-e MCP_ROLE_CAPABILITIES={{ MOODLE_MCP_ROLE_CAPABILITIES | join(',') | quote }} \
{{ MOODLE_MCP_LOCAL_CID | quote }} php
args:
stdin: "{{ lookup('file', 'provision_mcp.php') }}"
stdin: "{{ lookup('file', 'php/provision_mcp.php') }}"
register: moodle_mcp_provision
changed_when: false
delegate_to: "{{ MOODLE_MCP_HOST_NODE }}"
@@ -24,7 +24,7 @@
- "MCP_CURRENT_TOKEN={{ MCP_UPSTREAM_CURRENT_KEY }}"
- "{{ SNIPEIT_IDENTITY_LOCAL_CID }}" # nocheck: container-exec-resolver
- php
stdin: "{{ lookup('file', 'provision_mcp_identity.php') }}"
stdin: "{{ lookup('file', 'php/provision_mcp_identity.php') }}"
register: snipeit_mcp_identity
retries: 30
delay: 10
@@ -17,7 +17,7 @@
- eval-file
- "-"
- "--path={{ WORDPRESS_DOCKER_HTML_PATH }}"
stdin: "{{ lookup('file', 'ai_engine/configure.php') }}"
stdin: "{{ lookup('file', 'php/ai_engine/configure.php') }}"
changed_when: true
no_log: "{{ MASK_CREDENTIALS_IN_LOGS | bool }}"
@@ -36,7 +36,7 @@
- eval-file
- "-"
- "--path={{ WORDPRESS_DOCKER_HTML_PATH }}"
stdin: "{{ lookup('file', 'ai_engine/endpoint.php') }}"
stdin: "{{ lookup('file', 'php/ai_engine/endpoint.php') }}"
register: wordpress_ai_endpoint
changed_when: false