DataDog / ansible-datadog-callback

Ansible callback to get stats & events directly into Datadog http://datadoghq.com
MIT License
93 stars 47 forks source link

Unexpected Exception: No module named datadog #20

Closed joshlove closed 7 years ago

joshlove commented 7 years ago

Looks like the same error from #14. We're running on Amazon Linux, have the ddagent installed on the box. When I try to run a playbook from the box I get

$ansible-playbook -i ec2.py -l tag_Service_myService playbooks/datadog.yml ERROR! Unexpected Exception: No module named datadog

If I delete the callback_plugins directory, the playbook runs fine.

My callback plugins directory is just:

$ ls -l total 16 -rwxr----- 1 jlove jlove 10045 Dec 7 20:40 datadog_callback.py -rw-r----- 1 jlove jlove 42 Dec 7 20:39 datadog_callback.yml

datadog_callback.yml just contains my api key, and the callback script is from this repository.

Any insight would be helpful, thanks!

joshlove commented 7 years ago

note: I had to pip install datadog again despite the agent being installed.