Update to 2021-12-31 14:05

This commit is contained in:
Daniel Berteaud
2021-12-31 14:05:49 +01:00
parent 489c627e9d
commit 6430e931d0
46 changed files with 856 additions and 51 deletions

View File

@@ -51,6 +51,27 @@
notify: restart etherpad
tags: etherpad
- name: Link plugins
file: src={{ etherpad_root_dir }}/app/src/node_modules/ep_{{ item }} dest={{ etherpad_root_dir }}/app/node_modules/ep_{{ item }} state=link
loop: "{{ etherpad_plugins }}"
notify: restart etherpad
tags: etherpad
- name: List linked plugins
shell: find {{ etherpad_root_dir }}/app/node_modules/ -type l -maxdepth 1 -mindepth 1 -exec basename "{}" \;
register: etherpad_linked_plugins
changed_when: False
tags: etherpad
- name: Unlink unmanaged plugins
file: path={{ etherpad_root_dir }}/app/node_modules/{{ item }} state=absent
loop: "{{ etherpad_linked_plugins.stdout_lines }}"
when:
- item | regex_replace('^ep_', '') not in etherpad_plugins
- item != 'ep_etherpad-lite'
notify: restart etherpad
tags: etherpad
- import_tasks: ../includes/webapps_create_mysql_db.yml
vars:
- db_name: "{{ etherpad_db_name }}"