ansible-community / molecule-plugins

Collection on molecule plugins
MIT License
101 stars 67 forks source link

Podman plugin always remove existing containers #186

Closed juanvalino closed 7 months ago

juanvalino commented 10 months ago

The fix applied in https://github.com/ansible-community/molecule-podman/pull/23 causes podman containers always be deleted and this makes converge command useless because it`s impossible to run converge multiple times against the already created containers.

I think a better approach is to check if the containers are already running and skip removal in that case. I`ll try to send a pull request with this implementation.

juanvalino commented 7 months ago

The fix submitted pass the tests.