diff --git a/tasks/hba.yml b/tasks/hba.yml index c7634ad..cc51a57 100644 --- a/tasks/hba.yml +++ b/tasks/hba.yml @@ -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