When i run my playbook then below error happens

[Gathering facts]
fatal [localhost]: FAILED! =>(“ansible_facts”: {}, “changed”: false, “failed_modules”: {“ansible.legacy.setup”:…

“msg”: “MODULE FAILURE\n see stdout/stderr for the exact error”, “rc”:1} }, “msg”: “The following modules failed to execute: ansible.legacy.setup\n”}

try posting the full error and info when running with -vvv

1 Like

Also I recommend adding more detail to the title, maybe mention module and/or error - people tend to respond to things when they can see quickly that they can help

1 Like

Googling your error yielded Ansible.legacy.setup failed to execute so it may also be worth posting information about the target’s OS version and what version of Python is running there, as well as your version of Ansible on top of what the other people have asked for in this thread.