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