Files
computer-playbook/roles/web-app-wordpress/tasks/03_enable_plugin.yml
T
kevinveenbirkenbach a55c99ef62 refactor(compose): replace docker lookup with container and unify compose paths
- Rename lookup plugin from `docker` to `container`
- Switch all lookups from `lookup('docker', ...)` to `lookup('container', ...)`
- Normalize compose file keys:
  - docker_compose → compose
  - docker_compose_override → compose_override
  - docker_compose_ca_override → compose_ca_override
- Centralize compose path resolution via docker_paths_utils
- Update compose_file_args to always derive paths from DIR_COMPOSITIONS
- Align all roles, templates, and vars with container/compose naming
- Update and rename unit tests accordingly

This prepares the codebase for engine-agnostic container backends
(e.g. Docker ↔ Podman) and removes legacy docker-specific assumptions.

https://chatgpt.com/share/6987a7cc-d374-800f-99ad-bb4c8f92c59e
2026-02-07 21:59:39 +01:00

20 lines
656 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: "Install and activate WordPress plugin via WP CLI"
command: >
{{ BIN_COMPOSE }} exec -u www-data -T application
wp plugin install {{ plugin_name }} --activate
--path={{ WORDPRESS_DOCKER_HTML_PATH }}
args:
chdir: "{{ lookup('container', application_id, 'directories.instance') }}"