Files
computer-playbook/roles/web-app-mediawiki/tasks/03_install.yml
kevinveenbirkenbachandClaude Fable 5 40e553069d refactor(structure): nest prefix-grouped sibling files into subfolders
Move files that share a delimiter-bounded name prefix within a folder (threshold 2) into a subfolder named after the prefix, dropping the prefix from the filename. Covers plugins/filter (docker, generate, has, merge, get/all), env handler subpackages, utils/roles/entity, utils/tests/swarm/write, role SQL/scripts/templates, keycloak/mailu task-includes, shared tasks/utils/load, and CI scripts. Update every import, query_file/script/include_tasks/src/lookup target, compose bind mount, and python -m path to the new locations.

Extend the prefix-grouped-files lint to threshold 2 with dir-level .nocheck and file-head nocheck opt-outs, and skip groups whose shortest member's stem equals the shared prefix. Keep flat only where a loader forbids nesting: WordPress mu-plugins and the docs/requirements namespace. Ansible filter discovery is recursive, so nested filters stay Jinja-resolvable.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-14 20:00:03 +02:00

24 lines
1.4 KiB
YAML

---
- name: "🥾 MEDIAWIKI | Bootstrap DB (install if empty) then update"
ansible.builtin.script: >-
install/or_update.sh
"{{ MEDIAWIKI_NETWORK_DATABASE }}" "{{ lookup('database', application_id, 'version') | default('latest') }}"
"{{ lookup('database', application_id, 'host') }}" "{{ lookup('database', application_id, 'port') }}"
"{{ lookup('database', application_id, 'username') }}" "{{ lookup('database', application_id, 'password') }}"
"{{ lookup('database', application_id, 'name') }}"
"{{ MEDIAWIKI_USER }}" "{{ MEDIAWIKI_IMAGE }}" "{{ MEDIAWIKI_VERSION }}" "{{ MEDIAWIKI_HTML_DIR }}"
"{{ MEDIAWIKI_URL }}" "{{ MEDIAWIKI_SITENAME }}"
"{{ MEDIAWIKI_ADMINISTRATOR_NAME }}" "{{ MEDIAWIKI_ADMINISTRATOR_PASSWORD }}"
environment:
MW_CUSTOM_IMAGE: "{{ SWARM_REGISTRY_PREFIX }}{{ MEDIAWIKI_CUSTOM_IMAGE }}:{{ MEDIAWIKI_VERSION }}"
MW_LOCALSETTINGS_HOST_PATH: "{{ MEDIAWIKI_LOCALSETTINGS_HOST_PATH }}"
MW_LOCALSETTINGS_CONTAINER_PATH: "{{ MEDIAWIKI_LOCALSETTINGS_CONTAINER_PATH }}"
MW_LOCAL_MOUNT_DIR: "{{ MEDIAWIKI_LOCAL_MOUNT_DIR }}"
MW_LOCAL_PATH: "{{ MEDIAWIKI_LOCAL_PATH }}"
MW_VOLUME_IMAGES: "{{ MEDIAWIKI_VOLUME_IMAGES }}"
MW_VOLUME_EXTENSIONS: "{{ MEDIAWIKI_VOLUME_EXTENSIONS }}"
run_once: true
delegate_to: "{{ MEDIAWIKI_HOST_NODE }}"
changed_when: false
no_log: "{{ MASK_CREDENTIALS_IN_LOGS | bool }}"