mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 10:59:59 +00:00
refactor(web-app-moodle): read the local cache path from its declaration
The path lived twice: as the mount target in meta/volumes.yml and again as a
literal in vars/main.yml. The variable now derives from the declaration through
lookup('volume', ...), the way web-svc-cdn and svc-opt-ssd-hdd already read
theirs, so the mount is the single place that defines where the cache lives.
The preceding commit's message already described this indirection; the edit
itself had not been staged with it.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
f67493b90f
commit
e031b7f615
1 file changed
+1
-1
@@ -6,7 +6,7 @@ swarm_stack_converge_retries: 600
|
||||
MOODLE_DOMAIN: "{{ lookup('domain', application_id) }}"
|
||||
MOODLE_CODE_DIR: "/var/www/html"
|
||||
MOODLE_DATA_DIR: "/var/www/moodledata"
|
||||
MOODLE_LOCAL_CACHE_DIR: "/var/www/moodlelocalcache"
|
||||
MOODLE_LOCAL_CACHE_DIR: "{{ lookup('volume', application_id, 'localcache').mounts[0].target }}"
|
||||
MOODLE_SOURCE_DIR: "/opt/moodle-source"
|
||||
MOODLE_ENTRYPOINT_PATH: "/usr/local/bin/moodle-entrypoint.sh"
|
||||
|
||||
|
||||
Reference in new issue
Block a user