mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 02:10:05 +00:00 
			
		
		
		
	Optimized tests für run once
This commit is contained in:
		| @@ -1,4 +1,3 @@ | ||||
| --- | ||||
| galaxy_info: | ||||
|   author: "Kevin Veen-Birchenbach" | ||||
|   description: "Injects Matomo analytics tracking code and noscript image tracker into Nginx-served HTML pages." | ||||
| @@ -9,16 +8,13 @@ galaxy_info: | ||||
|     Consulting & Coaching Solutions | ||||
|     https://www.veen.world | ||||
|   galaxy_tags: | ||||
|     - nginx | ||||
|     - matomo | ||||
|     - analytics | ||||
|   - nginx | ||||
|   - matomo | ||||
|   - analytics | ||||
|   repository: "https://github.com/kevinveenbirkenbach/infinito-nexus" | ||||
|   issue_tracker_url: "https://github.com/kevinveenbirkenbach/infinito-nexus/issues" | ||||
|   documentation: "https://github.com/kevinveenbirkenbach/infinito-nexus/tree/main/roles/srv-web-7-7-inj-matomo" | ||||
|   min_ansible_version: "2.9" | ||||
|   platforms: | ||||
|     - name: Any | ||||
|       versions: [ all ] | ||||
| dependencies: | ||||
|   - srv-web-7-4-core | ||||
|  | ||||
|   - name: Any | ||||
|     versions: [all] | ||||
|   | ||||
| @@ -1,5 +1,11 @@ | ||||
| # run_once_srv_web_7_7_inj_matomo: deactivated | ||||
|  | ||||
| - name: Load former meta dependencies once | ||||
|   block: | ||||
|   - name: Include moved dependency 'srv-web-7-4-core' | ||||
|     include_role: | ||||
|       name: srv-web-7-4-core | ||||
|   - set_fact: | ||||
|       run_once_srv_web_7_7_inj_matomo: true | ||||
|   when: run_once_srv_web_7_7_inj_matomo is not defined | ||||
| - name: "Relevant variables for role: {{ role_path | basename }}" | ||||
|   debug: | ||||
|     msg: | ||||
| @@ -10,16 +16,16 @@ | ||||
|  | ||||
| - name: "Check if site {{ domain }} is allready registered at Matomo" | ||||
|   uri: | ||||
|     url:            "{{ matomo_verification_url }}" | ||||
|     method:         GET | ||||
|     url: "{{ matomo_verification_url }}" | ||||
|     method: GET | ||||
|     return_content: yes | ||||
|     status_code:    200 | ||||
|     status_code: 200 | ||||
|     validate_certs: yes | ||||
|   register:         site_check | ||||
|   register: site_check | ||||
|  | ||||
| - name: Set matomo_site_id to Null | ||||
|   set_fact: | ||||
|     matomo_site_id: Null | ||||
|     matomo_site_id: | ||||
|  | ||||
| - name: Set fact for site ID if site already exists | ||||
|   set_fact: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user