Displaying remote failures. Was "Using ansible and getting "No module named simplejson", here's where to find it."

I had more thoughts on this, but I didn’t want to jeopardize your google ranking, and succinct post.

I woke up this morning disagreeing with myself. After reading the error output for a 2nd time, it’s pretty clear that the error is coming from the remote machine. You’re BDFL and all, but I think a tie between ‘people who use ansible’, and ‘people who haven’t used ansible before’ should go to the former. A fresh pair of eyes should only go so far :slight_smile:

Although, it might help if the output was indented evenly:

[wes@mgmt001 playbooks]$ ansible all -m ping
testansible.dal05.domain.com | FAILED >> {
“failed”: true,
“msg”: “”,
“parsed”: false
}

stderr: [testansible.dal05.domain.com] => Traceback (most recent call last):

File “/tmp/ansible.Gh2711/ping”, line 23, in ? ## This is indented

import simplejson as json ## This is indented more

ImportError: No module named simplejson ## This is not indented at all

Thoughts? Am I just spinning my wheels here?