title: Could not find imported module support code for ansiblemodule (community kubernetes collection )
body: <p>i installed the community kubernetes collection (<a href="https://galaxy.ansible.com/community/kubernetes" rel="nofollow noreferrer">https://galaxy.ansible.com/community/kubernetes</a>)</p>
  <p>run <code>ansible-galaxy collection install community.kubernetes</code> on my ansible machine and have this task to use the module:</p>
  <pre><code>- name: Create a dashboard service account
    kubernetes.core.k8s:
      kubeconfig: &quot;{{ hostvars['master'].kubeconfig }}&quot;
      state: present
      resource_definition:
        kind: ServiceAccount
        apiVersion: v1
        metadata:
          name: admin-user
          namespace: kubernetes-dashboard
  </code></pre>
  <p>and thats the output:</p>
  <pre><code>fatal: [master]: FAILED! =&gt; {&quot;msg&quot;: &quot;Could not find imported module support code for ansiblemodule.  Looked for either AnsibleTurboModule.py or module.py&quot;}
  </code></pre>
  <p>ansible version:</p>
  <pre><code>ansible 2.9.9
    config file = /home/xx/ansible/ansible.cfg
    configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
    ansible python module location = /usr/local/lib/python3.7/dist-packages/ansible
    executable location = /usr/local/bin/ansible
    python version = 3.7.3 (default, Jan 22 2021, 20:04:44) [GCC 8.3.0]
  </code></pre>
  <p>OS:</p>
  <pre><code>PRETTY_NAME=&quot;Debian GNU/Linux 10 (buster)&quot;
  NAME=&quot;Debian GNU/Linux&quot;
  VERSION_ID=&quot;10&quot;
  VERSION=&quot;10 (buster)&quot;
  VERSION_CODENAME=buster
  ID=debian
  HOME_URL=&quot;https://www.debian.org/&quot;
  SUPPORT_URL=&quot;https://www.debian.org/support&quot;
  BUG_REPORT_URL=&quot;https://bugs.debian.org/&quot;
  </code></pre>
  <p>what do i need to fix this problem?</p>
  <p>if you need more informations, let me know!</p>