Skip to content
This repository has been archived by the owner on Jan 8, 2023. It is now read-only.

Commit

Permalink
Skip podman network creation named with 'bridge' (#121)
Browse files Browse the repository at this point in the history
As seen in https://docs.podman.io/en/latest/markdown/podman-run.1.html#network-mode-net "bridge" is a special name used to create a network stack on the default bridge. 
When a "bridge" podman network is created, it won't be used when  `podman run --network=bridge ...` is executed.
The same happends with 'none', 'host', 'ns', 'private', 'slirp4netns' it won't be used or it will fail as incomplete argument.

Co-authored-by: Sorin Sbarnea <[email protected]>
  • Loading branch information
Daniel-Sanchez-Fabregas and ssbarnea authored Jul 20, 2022
1 parent 1fe384b commit 186a7f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/molecule_podman/playbooks/create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@
- podman_network.results[0].msg is defined
- "'no such network' in podman_network.results[0].msg"
- podman_network.results[0].networks is undefined
- "podman_network.results[0].ansible_loop.allitems[0].network not in ['bridge', 'none', 'host', 'ns', 'private', 'slirp4netns']"

- name: Create molecule instance(s)
ansible.builtin.command: >
Expand Down

0 comments on commit 186a7f7

Please sign in to comment.