# Gather\_facts: Module not found: No module named 'ansible.modules.ansible.module\_utils'

**URL:** <https://forum.ansible.com/t/gather-facts-module-not-found-no-module-named-ansible-modules-ansible-module-utils/8147>\
**Category:** Get Help\
**Tags:** module\
**Created:** [August 28, 2024, 6:44pm UTC](https://forum.ansible.com/t/gather-facts-module-not-found-no-module-named-ansible-modules-ansible-module-utils/8147 "2024-08-28T18:44:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![we7u](https://avatars.discourse-cdn.com/v4/letter/w/8491ac/32.png) [@we7u](https://forum.ansible.com/u/we7u)\
**Post date:** [August 28, 2024, 6:44pm UTC](https://forum.ansible.com/t/gather-facts-module-not-found-no-module-named-ansible-modules-ansible-module-utils/8147/1 "2024-08-28T18:44:16Z")

</div>

I upgraded my Ansible command/control machine to OpenSuSE-15.6 and am now getting this error when I try to run certain ansible playbooks against remote machines:

‘’‘File "/tmp/ansible\_ansible.legacy.setup\_payload\_ttw45yty/ansible\_ansible.legacy.setup\_payload.zip/ansible/modules/ansible/legacy/setup.py", line 131, in \nModuleNotFoundError: No module named ‘ansible.modules.ansible.module\_utils’\n", “module\_stdout”: “”, “msg”: “MODULE FAILURE\nSee stdout/stderr for the exact error”, “rc”: 1}}, “msg”: “The following modules failed to execute: ansible.legacy.setup\n”}’‘’

```
ansible-core-2.16.5-bp156.1.2.noarch
ansible-9.4.0-bp156.1.2.noarch

```

I found this thread but there was no solution mentioned: [ModuleNotFoundError: No module named 'ansible.modules.ansible.module\_utils · Issue #83714 · ansible/ansible · GitHub](https://github.com/ansible/ansible/issues/83714)

I also did a search in this forum with tag “module” and didn’t find anything relevant.

Hopefully there’s an easy fix. Thanks!

PS: If I add “gather\_facts: false” to the playbook I don’t appear to get that error and can run the playbook to completion.
