Hi,
I’m trying to use Ansible to setup a Raspberry Pi. Somewhere during the “setup phase” an exception is thrown:
fatal: [192.168.x.x] => failed to parse: Traceback (most recent call last):
File “/home/pi/.ansible/tmp/ansible-1341394591.63-194378702522991/setup”, line 351, in
for (k, v) in ansible_facts().items():
File “/home/pi/.ansible/tmp/ansible-1341394591.63-194378702522991/setup”, line 307, in ansible_facts
get_virtual_facts(facts)
File “/home/pi/.ansible/tmp/ansible-1341394591.63-194378702522991/setup”, line 211, in get_virtual_facts
facts = get_linux_virtual_facts(facts)
File “/home/pi/.ansible/tmp/ansible-1341394591.63-194378702522991/setup”, line 191, in get_linux_virtual_facts
if ‘QEMU’ in facts[‘processor’][0]:
KeyError: ‘processor’
I’m now wondering how I could debug this problem. I can log in to the Pi and I do have the setup file. But I don’t know how to proceed from there. I have tried loading the file and calling a function like so:
$ python -c ‘import imp; setup = imp.load_source(“setup”, “/home/pi/.ansible/tmp/ansible-1341394591.63-194378702522991/setup”); print setup.ansible_facts();’
To no avail. Could someone point me in the right direction?
With kind regards,