mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-30 23:38:13 +02:00
- 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
21 lines
670 B
YAML
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
|