mirror of
				https://git.lapiole.org/dani/ansible-roles.git
				synced 2025-10-26 08:21:28 +01:00 
			
		
		
		
	Update to 2022-02-22 18:00
This commit is contained in:
		| @@ -69,6 +69,9 @@ bookstack_default_lang: fr | ||||
| # Session lifetime, in minutes | ||||
| bookstack_session_lifetime: 480 | ||||
|  | ||||
| # PDF Exporter. Can be either dompdf (the default) or wkhtmltopdf | ||||
| bookstack_pdf_exporter: dompdf | ||||
|  | ||||
| # You can set custom directive with this: | ||||
| # bookstack_settings: | ||||
| #   AUTH_METHOD: saml2 | ||||
|   | ||||
| @@ -6,3 +6,5 @@ dependencies: | ||||
|   - role: mysql_server | ||||
|     when: bookstack_db_server in ['localhost','127.0.0.1'] | ||||
|   - role: composer | ||||
|   - role: wkhtmltopdf | ||||
|     when: bookstack_pdf_exporter == 'wkhtmltopdf' | ||||
|   | ||||
| @@ -27,3 +27,7 @@ QUEUE_CONNECTION=database | ||||
| {% for key in bookstack_settings.keys() | list %} | ||||
| {{ key }}="{{ bookstack_settings[key] }}" | ||||
| {% endfor %} | ||||
| {% if bookstack_pdf_exporter == 'wkhtmltopdf' %} | ||||
| WKHTMLTOPDF=/usr/local/bin/wkhtmltopdf | ||||
| ALLOW_UNTRUSTED_SERVER_FETCHING=true | ||||
| {% endif %} | ||||
|   | ||||
| @@ -25,7 +25,7 @@ php_admin_value[upload_tmp_dir] = {{ bookstack_root_dir }}/tmp | ||||
| php_admin_value[sys_temp_dir] = {{ bookstack_root_dir }}/tmp | ||||
| php_admin_value[post_max_size] = 100M | ||||
| php_admin_value[upload_max_filesize] = 100M | ||||
| php_admin_value[disable_functions] = system, show_source, symlink, exec, dl, shell_exec, passthru, phpinfo, escapeshellarg, escapeshellcmd | ||||
| php_admin_value[disable_functions] = system, show_source, symlink, exec, dl, shell_exec, passthru, phpinfo, escapeshellcmd | ||||
| php_admin_value[open_basedir] = {{ bookstack_root_dir }}:/usr/share/pear/:/usr/share/php/ | ||||
| php_admin_value[max_execution_time] = 60 | ||||
| php_admin_value[max_input_time] = 60 | ||||
|   | ||||
							
								
								
									
										3
									
								
								roles/wkhtmltopdf/defaults/main.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								roles/wkhtmltopdf/defaults/main.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| --- | ||||
|  | ||||
| wkhtmltopdf_version: 0.12.6-1 | ||||
							
								
								
									
										15
									
								
								roles/wkhtmltopdf/tasks/main.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								roles/wkhtmltopdf/tasks/main.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,15 @@ | ||||
| --- | ||||
|  | ||||
| # Load distribution specific variables | ||||
| - include_vars: "{{ item }}" | ||||
|   with_first_found: | ||||
|     - "{{ role_path }}/vars/{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml" | ||||
|     - "{{ role_path }}/vars/{{ ansible_os_family }}-{{ ansible_distribution_major_version }}.yml" | ||||
|     - "{{ role_path }}/vars/{{ ansible_distribution }}.yml" | ||||
|     - "{{ role_path }}/vars/{{ ansible_os_family }}.yml" | ||||
|   tags: wkhtmltopdf | ||||
|  | ||||
| - name: Install wkhtmltopdf | ||||
|   yum: name={{ wkhtmltopdf_package_url }} disable_gpg_check=True | ||||
|   when: ansible_os_family == 'RedHat' | ||||
|   tags: wkhtmltopdf | ||||
							
								
								
									
										3
									
								
								roles/wkhtmltopdf/vars/RedHat-8.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								roles/wkhtmltopdf/vars/RedHat-8.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| --- | ||||
|  | ||||
| wkhtmltopdf_package_url: https://github.com/wkhtmltopdf/packaging/releases/download/{{ wkhtmltopdf_version }}/wkhtmltox-{{ wkhtmltopdf_version }}.centos8.x86_64.rpm | ||||
		Reference in New Issue
	
	Block a user
	 Daniel Berteaud
					Daniel Berteaud