You've already forked matrix-docker-ansible-deploy
mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2025-06-18 22:17:50 +02:00
Make --tags=run-postgres-vacuum and --tags=upgrade-postgres not assume Synapse
Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/2211
This commit is contained in:
@ -55,10 +55,12 @@
|
||||
- ansible.builtin.debug:
|
||||
msg: "Upgrading database from {{ matrix_postgres_detected_version_corresponding_docker_image }} to {{ matrix_postgres_docker_image_latest }}"
|
||||
|
||||
- name: Ensure matrix-synapse is stopped
|
||||
- name: Ensure services are stopped
|
||||
ansible.builtin.service:
|
||||
name: matrix-synapse
|
||||
name: "{{ item }}"
|
||||
state: stopped
|
||||
daemon_reload: true
|
||||
with_items: "{{ matrix_postgres_systemd_services_to_stop_for_maintenance_list }}"
|
||||
|
||||
- name: Ensure matrix-postgres is started
|
||||
ansible.builtin.service:
|
||||
@ -175,11 +177,12 @@
|
||||
path: "{{ postgres_dump_dir }}/{{ postgres_dump_name }}"
|
||||
state: absent
|
||||
|
||||
- name: Ensure matrix-synapse is started
|
||||
- name: Ensure services are started
|
||||
ansible.builtin.service:
|
||||
name: matrix-synapse
|
||||
name: "{{ item }}"
|
||||
state: started
|
||||
daemon_reload: true
|
||||
with_items: "{{ matrix_postgres_systemd_services_to_stop_for_maintenance_list }}"
|
||||
|
||||
- ansible.builtin.debug:
|
||||
msg: "NOTE: Your old Postgres data directory is preserved at `{{ postgres_auto_upgrade_backup_data_path }}`. You might want to get rid of it once you've confirmed that all is well."
|
||||
|
Reference in New Issue
Block a user