[etherpad] Automatically install ep_delete_after_delay module if necessary
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>certbot_on_virtu
parent
3d44998c5a
commit
62655644b6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue