mirror of
				https://git.lapiole.org/dani/ansible-roles.git
				synced 2025-10-31 10:51:27 +01:00 
			
		
		
		
	Update to 2021-12-31 14:05
This commit is contained in:
		| @@ -40,8 +40,11 @@ etherpad_theme: colibris | ||||
|  | ||||
| # List of plugins to install | ||||
| etherpad_plugins_base: | ||||
|   - adminpads | ||||
|   - delete_after_delay | ||||
|   - delete_empty_pads | ||||
| etherpad_plugins_extra: [] | ||||
| etherpad_plugins: "{{ etherpad_plugins_base + etherpad_plugins_extra }}" | ||||
|  | ||||
| # If you add the whiteboard plugin, set the URL | ||||
| # See https://www.npmjs.com/package/ep_whiteboard | ||||
| # etherpad_wbo_host: wbo.example.org | ||||
|   | ||||
| @@ -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 }}" | ||||
|   | ||||
| @@ -22,6 +22,11 @@ | ||||
|       "is_admin" : true | ||||
|     } | ||||
|   }, | ||||
| {% if 'whiteboard' in etherpad_plugins and etherpad_wbo_host is defined %} | ||||
|   "ep_draw": { | ||||
|     "host": "{{ etherpad_wbo_host }}" | ||||
|   }, | ||||
| {% endif %} | ||||
|   "ep_delete_after_delay": { | ||||
|     "delay" : 2592000, | ||||
|     "loop" : true, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Daniel Berteaud
					Daniel Berteaud