@JianZhang, the failure that you are seeing is because the container being run does not have the POD_NAME & POD_NAMESPACE environment variables set. You could, potentially set them, but I would have no expectation for that to work since you are not a pod running in the cluster. As an aside, I see in your comment, "I also test it with specifying the `--extra-vars 'runtime=2'` and --extra-vars 'runtime=1', still got the same errors." The runtime versions do not work this way and are inherited in the image you are using, you can't manipulate the runtime version. The fact that our APBs are container images that can be run with `docker run ...` is great. However, there should be no expectation for the https://github.com/ansibleplaybookbundle/ansible-asb-modules to work in an APB run outside the context of the Ansible Service Broker. At best, this is an issue against the postgresql-apb to handle execution outside of the broker context.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:0489