diff --git a/plugins/module_utils/podman/quadlet.py b/plugins/module_utils/podman/quadlet.py index 83a95889..a04da3ee 100644 --- a/plugins/module_utils/podman/quadlet.py +++ b/plugins/module_utils/podman/quadlet.py @@ -166,6 +166,9 @@ def custom_prepare_params(self, params: dict) -> dict: params["label"] = ["%s=%s" % (k, v) for k, v in params["label"].items()] if params["env"]: params["env"] = ["%s=%s" % (k, v) for k, v in params["env"].items()] + if params["rootfs"]: + params["rootfs"] = params["image"] + params["image"] = None if params["sysctl"]: params["sysctl"] = ["%s=%s" % (k, v) for k, v in params["sysctl"].items()] if params["tmpfs"]: