hba: use docker_compose task to restart

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2023-11-22 12:09:05 +01:00
parent 35568e2e41
commit 716732b18b
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
1 changed files with 4 additions and 4 deletions

View File

@ -16,7 +16,7 @@
- name: 'Restart database container'
when: postgres_ha_hba.changed
args:
chdir: '{{ postgres_ha_service_path }}'
command: |
docker-compose restart db
docker_compose:
project_src: '{{ postgres_ha_service_path }}'
files: '{{ postgres_ha_compose_file }}'
restarted: true