<p>I try to deploy some .yaml file with code of Kubernetes, but get error</p>
<pre><code>TASK [/cur/develop/inno/777/name.k8s/roles/deploy_k8s_dashboard : Apply the Kubernetes dashboard] **************************************************************************************************************************************************************************************
Monday 17 October 2022  13:52:07 +0200 (0:00:00.836)       0:00:01.410 ******** 
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ImportError: No module named kubernetes.dynamic.resource
fatal: [cibd1]: FAILED! =&gt; changed=false 
  error: No module named kubernetes.dynamic.resource
  msg: Failed to import the required Python library (kubernetes) on bvm's Python /usr/bin/python. Please read the module documentation and install it in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ImportError: No module named kubernetes.dynamic.resource
fatal: [cibd1]: FAILED! =&gt; changed=false 
  error: No module named kubernetes.dynamic.resource
  msg: Failed to import the required Python library (kubernetes) on bvm's Python /usr/bin/python. Please read the module documentation and install it in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter
</code></pre>
<p>Could you please help with advice, How can I fix it?</p>

Oleg
<p>I've had a similar problem. locally I had to execute the following</p>
<pre><code>ansible-galaxy collection install kubernetes.core
</code></pre>
<p>On the target server make sure that you have python3 installed as python2 won't be enough. Once that is installed, I also had to define the below in my vars:</p>
<pre><code>ansible_python_interpreter: /bin/python3
</code></pre>
