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

14 views
Skip to first unread message

sri sadineni

unread,
Feb 24, 2020, 11:17:41 AM2/24/20
to Ansible Development
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?
Reply all
Reply to author
Forward
0 new messages