mirror of
				https://github.com/spantaleev/matrix-docker-ansible-deploy.git
				synced 2025-11-04 00:58:56 +01:00 
			
		
		
		
	Move setup sanity checks to a central place
This commit is contained in:
		@@ -1,5 +1,9 @@
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
- include: tasks/setup/setup_sanity_check.yml
 | 
			
		||||
  tags:
 | 
			
		||||
    - always
 | 
			
		||||
 | 
			
		||||
- include: tasks/setup/setup_base.yml
 | 
			
		||||
  tags:
 | 
			
		||||
    - setup-all
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										11
									
								
								roles/matrix-server/tasks/setup/setup_sanity_check.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								roles/matrix-server/tasks/setup/setup_sanity_check.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
- name: Fail if Macaroon key is missing
 | 
			
		||||
  fail:
 | 
			
		||||
    msg: "You need to set a secret in the matrix_synapse_macaroon_secret_key variable"
 | 
			
		||||
  when: "matrix_synapse_macaroon_secret_key == ''"
 | 
			
		||||
 | 
			
		||||
- name: Fail if Coturn Auth secret is missing
 | 
			
		||||
  fail:
 | 
			
		||||
    msg: "You need to set a secret in the matrix_coturn_turn_static_auth_secret variable"
 | 
			
		||||
  when: "matrix_coturn_turn_static_auth_secret == ''"
 | 
			
		||||
@@ -1,10 +1,5 @@
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
- name: Fail if Macaroon key is missing
 | 
			
		||||
  fail:
 | 
			
		||||
    msg: "You need to set a secret in the matrix_synapse_macaroon_secret_key variable"
 | 
			
		||||
  when: "matrix_synapse_macaroon_secret_key == ''"
 | 
			
		||||
 | 
			
		||||
- set_fact:
 | 
			
		||||
    matrix_synapse_media_store_parent_path: "{{ matrix_synapse_media_store_path|dirname }}"
 | 
			
		||||
    matrix_synapse_media_store_directory_name: "{{ matrix_synapse_media_store_path|basename }}"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user