mirror of
				https://github.com/spantaleev/matrix-docker-ansible-deploy.git
				synced 2025-10-31 15:27:56 +01:00 
			
		
		
		
	Pass devture_postgres_db_migration_request to com.devture.ansible.role.postgres in a cleaner way
This commit is contained in:
		| @@ -12,7 +12,10 @@ | ||||
|  | ||||
|     - when: "matrix_mautrix_whatsapp_sqlite_database_path_local_stat_result.stat.exists | bool" | ||||
|       block: | ||||
|         - ansible.builtin.set_fact: | ||||
|         - ansible.builtin.include_role: | ||||
|             name: galaxy/com.devture.ansible.role.postgres | ||||
|             tasks_from: migrate_db_to_postgres | ||||
|           vars: | ||||
|             devture_postgres_db_migration_request: | ||||
|               src: "{{ matrix_mautrix_whatsapp_sqlite_database_path_local }}" | ||||
|               dst: "{{ matrix_mautrix_whatsapp_database_connection_string }}" | ||||
| @@ -22,10 +25,6 @@ | ||||
|               systemd_services_to_stop: ['matrix-mautrix-whatsapp.service'] | ||||
|               pgloader_options: ['--with "quote identifiers"'] | ||||
|  | ||||
|         - ansible.builtin.include_role: | ||||
|             name: galaxy/com.devture.ansible.role.postgres | ||||
|             tasks_from: migrate_db_to_postgres | ||||
|  | ||||
|         - ansible.builtin.set_fact: | ||||
|             matrix_mautrix_whatsapp_requires_restart: true | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user