mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-12-22 04:34:00 +00:00
Do not wait needlessly when vacuuming or importing Postgres
This commit is contained in:
parent
74b186a454
commit
a4662660d2
@ -49,8 +49,10 @@
|
||||
name: matrix-postgres
|
||||
state: started
|
||||
daemon_reload: true
|
||||
register: matrix_postgres_import_start_result
|
||||
|
||||
- name: Wait a bit, so that Postgres can start
|
||||
- when: matrix_postgres_import_start_result.changed | bool
|
||||
name: Wait a bit, so that Postgres can start
|
||||
ansible.builtin.wait_for:
|
||||
timeout: "{{ postgres_start_wait_time }}"
|
||||
delegate_to: 127.0.0.1
|
||||
|
@ -28,8 +28,10 @@
|
||||
name: matrix-postgres
|
||||
state: started
|
||||
daemon_reload: true
|
||||
register: matrix_postgres_vacuum_start_result
|
||||
|
||||
- name: Wait a bit, so that Postgres can start
|
||||
- when: matrix_postgres_vacuum_start_result.changed | bool
|
||||
name: Wait a bit, so that Postgres can start
|
||||
ansible.builtin.wait_for:
|
||||
timeout: "{{ postgres_start_wait_time }}"
|
||||
delegate_to: 127.0.0.1
|
||||
|
Loading…
Reference in New Issue
Block a user