ansible k8s module to support syntax for creating configmap --from-file

Hi Team,

I have looking forward to create config maps by using --from-file syntax. I’m on version 2.7.2 and I couldn’t find any syntax that support this.

This is the command I’ve been trying to automate.
kubectl create configmap securitypolicy --from-file=securitypolicy.json -n demo.

Could anyone here guide me to create the config map with --from-file syntax using ansible modules?