ansible-community / molecule-plugins

Collection on molecule plugins
MIT License
109 stars 73 forks source link

podman run container with multiple networks #75

Open guidograzioli opened 2 years ago

guidograzioli commented 2 years ago

Podman supports starting a container with `--network ''; and we had need of such type of setup in our test scenario here: https://github.com/guidograzioli/cross-dc-rhsso-demo/tree/molecule/molecule/default

The idea is generating one podman network for the aggregated set of all network: xxx coming from all platforms, then attaching to the list when running the containers, using an additional argument networks: [].

The final create.yml

If it could be beneficial for others, I am up to prepare a PR with this behaviour implemented.