diff --git a/plugins/module_utils/podman/podman_container_lib.py b/plugins/module_utils/podman/podman_container_lib.py index a0f6af27e..f892d0672 100644 --- a/plugins/module_utils/podman/podman_container_lib.py +++ b/plugins/module_utils/podman/podman_container_lib.py @@ -1067,7 +1067,7 @@ def diffparam_no_hosts(self): before = not bool(self.info['hostspath']) # For newer verions of Podman if 'resolvconfpath' in self.info: - before = not bool(self.info['resolvconfpath']) + before = bool(self.info['resolvconfpath']) after = self.params['no_hosts'] if self.params['network'] == ['none']: after = True @@ -1616,7 +1616,7 @@ def make_absent(self): def execute(self): """Execute the desired action according to map of actions & states.""" states_map = { - 'present': self.make_started, + 'present': self.make_created, 'started': self.make_started, 'absent': self.make_absent, 'stopped': self.make_stopped,