Files
computer-playbook/roles/web-app-wordpress/tasks/04_mu_plugins.yml
kevinveenbirkenbachandClaude Opus 5 31c3a84eac refactor(web-app-wordpress): group the install task files under a shared directory
The structure lint requires files sharing a name prefix to live in a
directory of that name. tasks/utils/install_plugin.yml and
tasks/utils/install_mu_plugin.yml violated that from the moment they
landed in 4d9bf6da3; move both into tasks/utils/install/ and repoint the
three includes.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-01 02:13:27 +02:00

16 lines
525 B
YAML

---
- name: "✅ Ensure mu-plugins directory exists inside the container"
shell: >
container exec -u {{ WORDPRESS_USER }} {{ WORDPRESS_CONTAINER_ADDRESS }}
mkdir -p {{ WORDPRESS_MU_PLUGINS_DIR }}
changed_when: false
- name: "🔁 Iterate through declared WordPress mu-plugins"
include_tasks: utils/install/mu_plugin.yml
loop: "{{ WORDPRESS_MU_PLUGINS }}"
loop_control:
loop_var: wordpress_mu_plugin
label: "{{ wordpress_mu_plugin.key }}"
vars:
mu_plugin_name: "{{ wordpress_mu_plugin.key }}"