Files
computer-playbook/roles/web-app-wordpress/tasks/05_enable_plugin.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

15 lines
475 B
YAML

---
- name: "🔎 Check if plugin has a dedicated install task under '{{ plugin_task_path }}'"
stat:
path: "{{ plugin_task_path }}"
register: plugin_task_file
delegate_to: localhost
become: false
- name: "📂 Include plugin-specific install task if it exists"
include_tasks: "{{ plugin_task_path }}"
when: plugin_task_file.stat.exists
- name: "📦 Ensure WordPress plugin is installed and active"
ansible.builtin.include_tasks: utils/install/plugin.yml