[etherpad] Automatically install ep_delete_after_delay module if necessary

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
certbot_on_virtu
Yohann D'ANELLO 2021-02-27 16:52:37 +01:00 committed by ynerant
parent 3d44998c5a
commit 62655644b6
1 changed files with 10 additions and 0 deletions

View File

@ -31,6 +31,16 @@
loop: "{{ etherpad.instances }}" loop: "{{ etherpad.instances }}"
notify: Restart Etherpad notify: Restart Etherpad
- name: Install delete_after_delay module
npm:
name: ep_delete_after_delay
path: "/var/www/{{ item.name }}/node_modules"
state: "{% if item.temporary.enabled is defined and item.temporary.enabled %}present{% else %}absent{% endif %}"
loop: "{{ etherpad.instances }}"
become: true
become_user: etherpad
notify: Restart Etherpad
- name: Install EtherPad systemd unit - name: Install EtherPad systemd unit
template: template:
src: systemd/system/etherpad-lite.service.j2 src: systemd/system/etherpad-lite.service.j2