# When i run my playbook then below error happens

**URL:** <https://forum.ansible.com/t/when-i-run-my-playbook-then-below-error-happens/39037>\
**Category:** Get Help\
**Created:** [December 11, 2024, 7:01am UTC](https://forum.ansible.com/t/when-i-run-my-playbook-then-below-error-happens/39037 "2024-12-11T07:01:28Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![anon81884396](https://avatars.discourse-cdn.com/v4/letter/a/b782af/32.png) [@anon81884396](https://forum.ansible.com/u/anon81884396)\
**Post date:** [December 11, 2024, 8:38pm UTC](https://forum.ansible.com/t/when-i-run-my-playbook-then-below-error-happens/39037/4 "2024-12-11T20:38:01Z")

</div>

> [@ravindrakal](#):
>
> The following modules failed to execute: ansible.legacy.setup

Googling your error yielded [Ansible.legacy.setup failed to execute](https://forum.ansible.com/t/ansible-legacy-setup-failed-to-execute/6347) 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.

---

_[View the full topic](https://forum.ansible.com/t/when-i-run-my-playbook-then-below-error-happens/39037)._
