Skip to content

Commit

Permalink
tests: manually stop the Candlepin container
Browse files Browse the repository at this point in the history
It seems the "podman_container" module cannot properly stop the running
container when being asked using "recreate=true"; hence, do it manually
before starting the new container.

This also reverts commit 12c1a38, which
is no more needed now.
  • Loading branch information
ptoscano authored and richm committed Dec 11, 2023
1 parent 12c1a38 commit 14bdd87
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/tasks/setup_candlepin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@
use: "{{ __rhc_is_ostree |
ternary('ansible.posix.rhel_rpm_ostree', omit) }}"

- name: Stop and remove Candlepin container
containers.podman.podman_container:
name: candlepin
state: absent

- name: Start Candlepin container
containers.podman.podman_container:
detach: true
Expand All @@ -43,7 +48,6 @@
publish:
- 8443:8443
- 8080:8080
recreate: true
rm: true
state: started

Expand Down

0 comments on commit 14bdd87

Please sign in to comment.