add task to remove modules
This commit is contained in:
parent
f2fbd5f86a
commit
ddc835a399
1 changed files with 12 additions and 0 deletions
|
@ -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
|
Loading…
Reference in a new issue