# Ansible Playbook Fact gathering fails on one Node

**URL:** <https://forum.ansible.com/t/ansible-playbook-fact-gathering-fails-on-one-node/19302>\
**Category:** Ansible Project\
**Created:** [September 18, 2015, 7:20pm UTC](https://forum.ansible.com/t/ansible-playbook-fact-gathering-fails-on-one-node/19302 "2015-09-18T19:20:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dominik\_Bessler](https://avatars.discourse-cdn.com/v4/letter/d/7ab992/32.png) [@Dominik\_Bessler](https://forum.ansible.com/u/Dominik_Bessler)\
**Post date:** [September 18, 2015, 7:20pm UTC](https://forum.ansible.com/t/ansible-playbook-fact-gathering-fails-on-one-node/19302/1 "2015-09-18T19:20:57Z")

</div>

I have a playbook that goes over the nodes and gets the facts.  
There is one node where this fails with following error.

Anyone got a Idea why this error happens?

Traceback (most recent call last):

File “/tmp/ansible/ansible-tmp-1442517427.38-239537369095604/setup”, line 4471, in   
main()  
File “/tmp/ansible/ansible-tmp-1442517427.38-239537369095604/setup”, line 137, in main  
data = run\_setup(module)  
File “/tmp/ansible/ansible-tmp-1442517427.38-239537369095604/setup”, line 81, in run\_setup  
facts = ansible\_facts(module)  
File “/tmp/ansible/ansible-tmp-1442517427.38-239537369095604/setup”, line 4411, in ansible\_facts  
facts.update(Hardware().populate())  
File “/tmp/ansible/ansible-tmp-1442517427.38-239537369095604/setup”, line 2413, in populate  
self.get\_device\_facts()  
File “/tmp/ansible/ansible-tmp-1442517427.38-239537369095604/setup”, line 2738, in get\_device\_facts  
d[‘host’] = m.group(1)  
AttributeError: ‘NoneType’ object has no attribute ‘group’

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [September 19, 2015, 12:18am UTC](https://forum.ansible.com/t/ansible-playbook-fact-gathering-fails-on-one-node/19302/2 "2015-09-19T00:18:55Z")

</div>

it seems to have issues getting the device info, though the error is  
pretty weird as in the current code 'm' is checked before accessing,  
are you using an old version of ansible?

---

<div class="post-metadata">

**Author:** ![Dominik\_Bessler](https://avatars.discourse-cdn.com/v4/letter/d/7ab992/32.png) [@Dominik\_Bessler](https://forum.ansible.com/u/Dominik_Bessler)\
**Post date:** [September 23, 2015, 1:59pm UTC](https://forum.ansible.com/t/ansible-playbook-fact-gathering-fails-on-one-node/19302/3 "2015-09-23T13:59:22Z")

</div>

I’m using version 1.9.2.
