Skip to content

Commit 704f7b3

Browse files
committed
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 <[email protected]>
1 parent a647333 commit 704f7b3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/tasks/clean_instance.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@
1212
['postgresql', 'postgresql-private-libs'] }}"
1313
when: not __postgresql_is_ostree | d(false)
1414

15+
- name: Stop and disable postgresql service
16+
service:
17+
name: postgresql
18+
state: stopped
19+
enabled: false
20+
when: __postgresql_is_ostree | d(false)
21+
1522
- name: Remove data directory
1623
file:
1724
path: "{{ __postgresql_data_dir }}"

0 commit comments

Comments
 (0)