From 704f7b3ac473d3f2e2a3a2a162c1016c4e6587ee Mon Sep 17 00:00:00 2001 From: Rich Megginson Date: Mon, 26 Feb 2024 12:12:10 -0700 Subject: [PATCH] test: stop and disable service on ostree systems On non-ostree systems, test cleanup will remove the packages, which will stop, disable, and remove the services. On ostree systems, just stop and disable. Signed-off-by: Rich Megginson --- tests/tasks/clean_instance.yml | 7 +++++++ 1 file changed, 7 insertions(+) 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 }}"