Files
computer-playbook/roles/web-app-wordpress/tasks/03_enable_plugin.yml
Kevin Veen-Birkenbach b3dfb8bf22 Fix: Resolved Discourse plugin bug and unified variable/path handling
- Discourse: fixed 'DISCOURSE_CONTAINERS_DIR' and 'DISCOURSE_APPLICATION_YML_DEST'
- Nextcloud: improved plugin enable/configure tasks formatting
- WordPress: unified OIDC, msmtp, and upload.ini variables and tasks
- General: aligned spacing and switched to path_join for consistency
2025-08-29 20:53:36 +02:00

21 lines
670 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: >
docker-compose exec -u www-data -T application
wp plugin install {{ plugin_name }} --activate
--path={{ WORDPRESS_DOCKER_HTML_PATH }}
args:
chdir: "{{ docker_compose.directories.instance }}"
when: not plugin_task_file.stat.exists