meaz
26e8c2d3f7
I created an issue upstream as there is no possibility to remove modules from cli. The main dev will do is tomorrow normally. So I keep this as WIP at the moment. Reviewed-on: #21 Reviewed-by: muppeth <muppeth@no-reply@disroot.org> Co-authored-by: meaz <meaz@disroot.org> Co-committed-by: meaz <meaz@disroot.org>
16 lines
No EOL
669 B
YAML
16 lines
No EOL
669 B
YAML
---
|
|
|
|
# The following command get the etherpad_plugins_list dictionnary
|
|
# selects only the enabled plugins
|
|
# then uses filter to get all plugins names in one line, without comas or quotes as needed for npm
|
|
- name: '[Modules] - Install modules'
|
|
shell:
|
|
cmd: "pnpm run install-plugins {{ etherpad_plugins_list| dict2items | selectattr('value', 'eq', 'enabled') | map(attribute='key') |join(',') | replace(\",\", \" \") }}"
|
|
args:
|
|
chdir: "{{ etherpad_app_dir }}/app"
|
|
become: yes
|
|
become_user: "{{ etherpad_username }}"
|
|
when: etherpad_plugins_list| dict2items | selectattr('value', 'eq', 'enabled') |length > 0
|
|
notify:
|
|
restart etherpad
|
|
tags: modules |