From 62655644b61e7b02c84d98e589047f81b68fcc3d Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Sat, 27 Feb 2021 16:52:37 +0100 Subject: [PATCH] [etherpad] Automatically install ep_delete_after_delay module if necessary Signed-off-by: Yohann D'ANELLO --- roles/etherpad/tasks/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/roles/etherpad/tasks/main.yml b/roles/etherpad/tasks/main.yml index 00b6d37a..0eb3e172 100644 --- a/roles/etherpad/tasks/main.yml +++ b/roles/etherpad/tasks/main.yml @@ -31,6 +31,16 @@ loop: "{{ etherpad.instances }}" 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 template: src: systemd/system/etherpad-lite.service.j2