mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-10 04:36:40 +00:00
- 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
20 lines
656 B
YAML
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') }}"
|