Since we'll likely have generic SQLite database importing via [pgloader](https://pgloader.io/) for migrating bridge databases from SQLite to Postgres, we'd rather avoid calling the "import Synapse SQLite database" command as just `--tags=import-sqlite-db`. Similarly, for the media store, we'd like to mention that it's related to Synapse as well. We'd like to be more explicit, so as to be less confusing, especially in light of other homeserver implementations coming in the future.
		
			
				
	
	
		
			38 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
- import_tasks: "{{ role_path }}/tasks/init.yml"
 | 
						|
  tags:
 | 
						|
    - always
 | 
						|
 | 
						|
- import_tasks: "{{ role_path }}/tasks/validate_config.yml"
 | 
						|
  when: "run_setup|bool and matrix_postgres_enabled|bool"
 | 
						|
  tags:
 | 
						|
    - setup-all
 | 
						|
    - setup-postgres
 | 
						|
 | 
						|
- import_tasks: "{{ role_path }}/tasks/setup_postgres.yml"
 | 
						|
  when: run_setup|bool
 | 
						|
  tags:
 | 
						|
    - setup-all
 | 
						|
    - setup-postgres
 | 
						|
 | 
						|
- import_tasks: "{{ role_path }}/tasks/import_postgres.yml"
 | 
						|
  when: run_postgres_import|bool
 | 
						|
  tags:
 | 
						|
    - import-postgres
 | 
						|
 | 
						|
# The `run_postgres_import_sqlite_db` variable had better be renamed to be consistent,
 | 
						|
# but that's a breaking change which may cause trouble for people.
 | 
						|
- import_tasks: "{{ role_path }}/tasks/import_synapse_sqlite_db.yml"
 | 
						|
  when: run_postgres_import_sqlite_db|bool
 | 
						|
  tags:
 | 
						|
    - import-synapse-sqlite-db
 | 
						|
 | 
						|
- import_tasks: "{{ role_path }}/tasks/upgrade_postgres.yml"
 | 
						|
  when: run_postgres_upgrade|bool
 | 
						|
  tags:
 | 
						|
    - upgrade-postgres
 | 
						|
 | 
						|
- import_tasks: "{{ role_path }}/tasks/run_vacuum.yml"
 | 
						|
  when: run_postgres_vacuum|bool
 | 
						|
  tags:
 | 
						|
    - run-postgres-vacuum
 |