<p>How can I run command:
<code>kubectl rollout restart deployment mydep</code> from Ansible role? I use k8s module with api key authorization, but this module has not such option. I though about sending requests to api-server, but I have trouble with preparing correct request.
I set verbose (v=10) level of logs for api-server and I tried to retrieve specified request, but it is too unreadable for me.
Have you any ideas?</p>

Kucharsky
<p>I would use the <a href="https://docs.ansible.com/ansible/2.9/modules/shell_module.html#shell-module" rel="nofollow noreferrer">shell</a> or <a href="https://docs.ansible.com/ansible/2.9/modules/command_module.html#command-module" rel="nofollow noreferrer">command</a> module in ansible and the option <code>--kubeconfig</code> for the kubeconfig file.</p>
