Skip to content

Commit

Permalink
test: stop and disable service on ostree systems
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
richm committed Feb 26, 2024
1 parent a647333 commit 704f7b3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/tasks/clean_instance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down

0 comments on commit 704f7b3

Please sign in to comment.