mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 18:29:21 +00:00 
			
		
		
		
	Update trusted domains for matomo
This commit is contained in:
		
							
								
								
									
										25
									
								
								roles/web-app-matomo/tasks/02_configuration.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								roles/web-app-matomo/tasks/02_configuration.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,25 @@ | ||||
| - name: Update DB host | ||||
|   command: > | ||||
|     docker exec --user root {{ matomo_name }} | ||||
|     sed -i "s/^host *=.*/host = {{ database_host }}/" {{ matomo_config }} | ||||
|  | ||||
| - name: Update DB name | ||||
|   command: > | ||||
|     docker exec --user root {{ matomo_name }} | ||||
|     sed -i "s/^dbname *=.*/dbname = {{ database_name }}/" {{ matomo_config }} | ||||
|  | ||||
| - name: Update DB user | ||||
|   command: > | ||||
|     docker exec --user root {{ matomo_name }} | ||||
|     sed -i "s/^username *=.*/username = {{ database_username }}/" {{ matomo_config }} | ||||
|  | ||||
| - name: Update DB password | ||||
|   command: > | ||||
|     docker exec --user root {{ matomo_name }} | ||||
|     sed -i "s/^password *=.*/password = {{ database_password }}/" {{ matomo_config }} | ||||
|   no_log: "{{ MASK_CREDENTIALS_IN_LOGS | bool }}" | ||||
|  | ||||
| - name: Update trusted host | ||||
|   command: > | ||||
|     docker exec --user root {{ matomo_name }} | ||||
|     sed -i "s|^trusted_hosts\[\].*|trusted_hosts[] = \"{{ domain }}\"|" {{ matomo_config }} | ||||
		Reference in New Issue
	
	Block a user