mirror of
				https://github.com/spantaleev/matrix-docker-ansible-deploy.git
				synced 2025-10-31 15:27:56 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			746 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			746 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| # SPDX-FileCopyrightText: 2022 Slavi Pantaleev
 | |
| #
 | |
| # SPDX-License-Identifier: AGPL-3.0-or-later
 | |
| 
 | |
| ---
 | |
| 
 | |
| - name: Fail if invalid username
 | |
|   ansible.builtin.fail:
 | |
|     msg: "Empty usernames values are not allowed ({{ user }})"
 | |
|   when: not (user.username | default(''))
 | |
| 
 | |
| - name: Fail if invalid initial_password for user - {{ user.username }}
 | |
|   ansible.builtin.fail:
 | |
|     msg: "Empty initial_password values are not allowed"
 | |
|   when: not (user.initial_password | default(''))
 | |
| 
 | |
| - name: Fail if invalid initial_type for user - {{ user.username }}
 | |
|   ansible.builtin.fail:
 | |
|     msg: "User initial_type `{{ user.initial_type | default('undefined') }}` is not supported"
 | |
|   when: user.initial_type | default('undefined') not in ['admin', 'user', 'bot', 'support']
 |