# "invalid output"

**URL:** <https://forum.ansible.com/t/invalid-output/15963>\
**Category:** Ansible Project\
**Created:** [August 15, 2014, 9:08pm UTC](https://forum.ansible.com/t/invalid-output/15963 "2014-08-15T21:08:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Oliver](https://avatars.discourse-cdn.com/v4/letter/j/97f17d/32.png) [@John\_Oliver](https://forum.ansible.com/u/John_Oliver)\
**Post date:** [August 15, 2014, 9:08pm UTC](https://forum.ansible.com/t/invalid-output/15963/1 "2014-08-15T21:08:18Z")

</div>

ansible 1.6.10 running against centOS 6.5

- name: Update all packages  
yum: name=\* state=latest

got me:

TASK: [common | Update all packages] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
failed: [jedis-test] =\> {“failed”: true, “parsed”: false}  
invalid output was: SUDO-SUCCESS-dhgoviiavigzenubojkfnnvxvpesnmih

Running it a second time with -vvvv succeeded. I’m guessing ansible ran into something like a prompt to import a GPG key. But the above output doesn’t help me figure that out 🙂

---

<div class="post-metadata">

**Author:** ![Henry\_Finucane](https://avatars.discourse-cdn.com/v4/letter/h/94ad74/32.png) [@Henry\_Finucane](https://forum.ansible.com/u/Henry_Finucane)\
**Post date:** [August 15, 2014, 11:06pm UTC](https://forum.ansible.com/t/invalid-output/15963/2 "2014-08-15T23:06:19Z")

</div>

I’ve seen that output when trying to run a blank module- are you doing fun things with modules or even action plugins?

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [August 16, 2014, 3:06pm UTC](https://forum.ansible.com/t/invalid-output/15963/3 "2014-08-16T15:06:51Z")

</div>

On a remote system that has not yet run this step once, do this for me.

(A) checkout ansible from git  
(B) source ./hacking/env-setup  
(C) ./hacking/test-module -m yum - a “name=‘\*’ state=latest”

Paste what you get back.

This should help us see what was going on.

---

<div class="post-metadata">

**Author:** ![John\_Oliver](https://avatars.discourse-cdn.com/v4/letter/j/97f17d/32.png) [@John\_Oliver](https://forum.ansible.com/u/John_Oliver)\
**Post date:** [August 27, 2014, 5:51pm UTC](https://forum.ansible.com/t/invalid-output/15963/4 "2014-08-27T17:51:41Z")

</div>

[joliver@localhost ansible]$ source ./hacking/env-setup

Setting up Ansible to run out of checkout…

PATH=/home/joliver/ansible/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/joliver/bin  
PYTHONPATH=/home/joliver/ansible/lib:  
ANSIBLE\_LIBRARY=/home/joliver/ansible/library:/usr/share/ansible/:/home/joliver/ansible/library  
MANPATH=/home/joliver/ansible/docs/man:

Remember, you may wish to specify your host file with -i

Done!

[joliver@localhost ansible]$ ./hacking/test-module -m yum - a “name=‘\*’ state=latest”  
Traceback (most recent call last):  
File “./hacking/test-module”, line 37, in   
import ansible.utils as utils  
File “/home/joliver/ansible/lib/ansible/utils/ **init**.py”, line 23, in   
import yaml  
ImportError: No module named yaml

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [August 27, 2014, 5:54pm UTC](https://forum.ansible.com/t/invalid-output/15963/5 "2014-08-27T17:54:50Z")

</div>

You’ll need to install the dependencies of the project.

One easy way without remembering the deps (which are small) is to just install the release version, _then_ switch over the “running from source” bits.

pip install ansible

etc
