Hi@Venkata,
You can create an Ansible-Playbook to deploy your war file. But your use case is not properly understood. You want to use docker as well as Kubernetes. Kubernetes is a cluster of containers. I mean behind the scene Kubernetes uses docker. So use only one tool.