1
0
Fork 0
mirror of https://github.com/containers/ansible-podman-collections.git synced 2026-02-04 07:11:49 +00:00

Fix internal networks idempotency (#421)

Remove logic with internal and dns, since Podman supports it in
recent versions.
Fix #350
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
This commit is contained in:
Sergey 2022-04-28 00:56:22 +03:00 committed by GitHub
parent 848034096c
commit 98c516292f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -325,10 +325,6 @@ class PodmanNetworkDiff:
dns_installed = True
before = not bool(
[k for k in self.info.get('plugins', []) if 'domainname' in k])
if internal:
before = True
if rootless:
before = False
after = self.params['disable_dns']
# If dnsname plugin is not installed, default is disable_dns=True
if not dns_installed and self.module.params['disable_dns'] is None: