Ansible Playbook Fact gathering fails on one Node

44 views
Skip to first unread message

Dominik Bessler

unread,
Sep 18, 2015, 4:21:51 PM9/18/15
to Ansible Project
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 <module>
    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'

Brian Coca

unread,
Sep 18, 2015, 8:19:00 PM9/18/15
to Ansible Project
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?



--
Brian Coca

Dominik Bessler

unread,
Sep 23, 2015, 9:59:22 AM9/23/15
to Ansible Project
I'm using version 1.9.2.

Reply all
Reply to author
Forward
0 new messages