I'm writing a script to redeploy code onto the intel edison through ansible. When running the following command I get an error. If possible I'd like to know how to find the file locally that causes this issue. I think that the file that throws the error on the server, "/home/root/.ansible/tmp/ansible-tmp-1444631867.66-245111051532005/setup", is probably generated from the files in the local repo.
However, I can't seem to find this setup file in ansible locally, and ansible removes this file from the server(edison) after the error gets thrown.
$ ansible-playbook -i inventory.yml provision_edison.yml
failed: [192.168.1.196] => {"failed": true, "parsed": false}
Traceback (most recent call last):
File "/home/root/.ansible/tmp/ansible-tmp-1444631867.66-245111051532005/setup", line 196, in <module>
import syslog
ImportError: No module named syslog
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
My inventory file inventory.yml
[edisons]
192.168.1.196
My provision_edison.yml file
---
- hosts: edisons
remote_user: root
tasks:
- name: "test if stuff is working"
shell: uname -a
I recoginise this as a python import error that is happening on the server. I tried seeing if the line number that the server threw, 196, corresponds to a file I have locally, but no luck.
root@edison-01:/usr/bin# ./python
Python 2.7.3 (default, Aug 15 2014, 22:34:09)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import syslog
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named syslog