add task to remove modules

This commit is contained in:
meaz 2024-06-09 10:12:09 +02:00
parent f2fbd5f86a
commit ddc835a399
Signed by: meaz
GPG key ID: CD7A47B2F1ED43B4

View file

@ -11,6 +11,18 @@
become: yes
become_user: "{{ etherpad_username }}"
when: etherpad_plugins_list| dict2items | selectattr('value', 'eq', 'enabled') |length > 0
notify:
restart etherpad
tags: modules
- name: '[Modules] - Remove modules'
shell:
cmd: "pnpm run plugins rm {{ etherpad_plugins_list| dict2items | selectattr('value', 'eq', 'removed') | 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', 'removed') |length > 0
notify:
restart etherpad
tags: modules