mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-27 00:05:44 +02:00
Update to 2021-12-31 14:05
This commit is contained in:
@@ -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 }}"
|
||||
|
Reference in New Issue
Block a user