I am using helm operators and I would like to convert the following command
kubectl patch deployment -n my_namespace myoperator-operator --type=‘json’ -p=‘[ {“op”: “replace”, “path”: “/spec/template/spec/containers/0/image”, “value”:“127.0.0.1/my-operator:myoperator_new_version”} ]’
in an ansible equivalent command. The reason behind this, is that I would like to create a role which will be called from a playbook. How to do this?
My question has been posted in stackoverflow as well
https://stackoverflow.com/questions/66796835/convert-a-kubectl-command-to-ansible-equivalent-command
Thank you in advance
George