# setup module fails sometimes

**URL:** <https://forum.ansible.com/t/setup-module-fails-sometimes/30296>\
**Category:** Ansible Project\
**Created:** [May 9, 2019, 8:47pm UTC](https://forum.ansible.com/t/setup-module-fails-sometimes/30296 "2019-05-09T20:47:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sampsont](https://avatars.discourse-cdn.com/v4/letter/s/fbc32d/32.png) [@sampsont](https://forum.ansible.com/u/sampsont)\
**Post date:** [May 9, 2019, 8:47pm UTC](https://forum.ansible.com/t/setup-module-fails-sometimes/30296/1 "2019-05-09T20:47:55Z")

</div>

When I run a playbook, sometimes a target gets in a mode where the setup module fails. Other times it runs just fine. Can anyone give me any ideas of what might be going on? Kindof looks like: [https://github.com/ansible/ansible/issues/48859](https://github.com/ansible/ansible/issues/48859)  
If I run with

`ansible all -m setup --limit sundowner`

it always seems to work.

Here is the first part of my playbook:

`

---

<div class="post-metadata">

**Author:** ![sampsont](https://avatars.discourse-cdn.com/v4/letter/s/fbc32d/32.png) [@sampsont](https://forum.ansible.com/u/sampsont)\
**Post date:** [May 10, 2019, 2:09pm UTC](https://forum.ansible.com/t/setup-module-fails-sometimes/30296/2 "2019-05-10T14:09:35Z")

</div>

Sorry. I actually run the playbook with:  
ansible-playbook -e ‘target\_os=rescue’ bootTo.yml -vvv
