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’