diff --git a/tests/tasks/clean_instance.yml b/tests/tasks/clean_instance.yml index 2139e14..39ea40b 100644 --- a/tests/tasks/clean_instance.yml +++ b/tests/tasks/clean_instance.yml @@ -12,6 +12,13 @@ ['postgresql', 'postgresql-private-libs'] }}" when: not __postgresql_is_ostree | d(false) +- name: Stop and disable postgresql service + service: + name: postgresql + state: stopped + enabled: false + when: __postgresql_is_ostree | d(false) + - name: Remove data directory file: path: "{{ __postgresql_data_dir }}"