mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-11-04 04:08:15 +00:00 
			
		
		
		
	Update trusted domains for matomo
This commit is contained in:
		@@ -2,8 +2,8 @@
 | 
			
		||||
  include_role: 
 | 
			
		||||
    name: cmp-db-docker-proxy
 | 
			
		||||
 | 
			
		||||
- name: "Patch Matomo config.ini.php with updated DB credentials"
 | 
			
		||||
  include_tasks: database.yml
 | 
			
		||||
- name: "Patch Matomo config.ini.php"
 | 
			
		||||
  include_tasks: 02_configuration.yml
 | 
			
		||||
 | 
			
		||||
- name: flush docker service
 | 
			
		||||
  meta: flush_handlers
 | 
			
		||||
@@ -18,3 +18,8 @@
 | 
			
		||||
    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 }}
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
---
 | 
			
		||||
- name: "construct {{ role_name }}"
 | 
			
		||||
  include_tasks: constructor.yml 
 | 
			
		||||
  include_tasks: 01_core.yml 
 | 
			
		||||
  when: run_once_web_app_matomo is not defined
 | 
			
		||||
 | 
			
		||||
- name: run the docker matomo tasks once
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user