update modules deployment, as explained upstream

This commit is contained in:
meaz 2023-08-18 11:10:00 +02:00
parent 3c31173df1
commit 8ba6330f95
Signed by: meaz
GPG Key ID: CD7A47B2F1ED43B4
1 changed files with 19 additions and 4 deletions

View File

@ -1,16 +1,30 @@
---
#- name: '[Modules] - Install modules'
# npm:
# name: "{{ item.name }}"
# path: "{{ etherpad_app_dir }}/app"
# state: latest
# with_items: "{{ etherpad_plugins }}"
# become: yes
# become_user: "{{ etherpad_username }}"
# when: item.install|lower == 'true'
# notify:
# restart etherpad
# tags: modules
- name: '[Modules] - Install modules'
npm:
name: "{{ item.name }}"
path: "{{ etherpad_app_dir }}/app"
state: latest
shell:
cmd: "npm install --no-save --legacy-peer-deps {{ item.name }}"
args:
chdir: "{{ etherpad_app_dir }}/app"
with_items: "{{ etherpad_plugins }}"
become: yes
become_user: "{{ etherpad_username }}"
when: item.install|lower == 'true'
notify:
restart etherpad
tags: modules
- name: '[Modules] - Uninstall modules'
npm:
@ -23,3 +37,4 @@
when: item.install|lower == 'false'
notify:
restart etherpad
tags: modules