update modules deployment, as explained upstream
This commit is contained in:
parent
3c31173df1
commit
8ba6330f95
|
@ -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
|
Loading…
Reference in New Issue