27 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| # SPDX-FileCopyrightText: 2023 - 2025 Slavi Pantaleev
 | |
| # SPDX-FileCopyrightText: 2024 - 2025 Suguru Hirahara
 | |
| #
 | |
| # SPDX-License-Identifier: AGPL-3.0-or-later
 | |
| 
 | |
| ---
 | |
| - name: (Deprecation) Catch and report renamed matrix-synapse-auto-compressor settings
 | |
|   ansible.builtin.fail:
 | |
|     msg: >-
 | |
|       Your configuration contains a variable, which now has a different name.
 | |
|       Please rename the variable (`{{ item.old }}` -> `{{ item.new }}`) on your configuration file (vars.yml).
 | |
|   when: "lookup('ansible.builtin.varnames', ('^' + item.old + '$'), wantlist=True) | length > 0"
 | |
|   with_items:
 | |
|     - "old": "matrix_synapse_auto_compressor_calendar"
 | |
|       "new": "matrix_synapse_auto_compressor_schedule"
 | |
|     - "old": "matrix_synapse_auto_compressor_container_image_name_prefix"
 | |
|       "new": "matrix_synapse_auto_compressor_container_image_registry_prefix"
 | |
| 
 | |
| - name: Fail if required matrix-synapse-auto-compressor settings not defined
 | |
|   ansible.builtin.fail:
 | |
|     msg: >
 | |
|       You need to define a required configuration setting (`{{ item }}`).
 | |
|   when: "vars[item] == ''"
 | |
|   with_items:
 | |
|     - matrix_synapse_auto_compressor_database_hostname
 | |
|     - matrix_synapse_auto_compressor_database_password
 |