"invalid output"

67 views
Skip to first unread message

John Oliver

unread,
Aug 15, 2014, 5:08:18 PM8/15/14
to ansible...@googlegroups.com
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 :-)

Henry Finucane

unread,
Aug 15, 2014, 7:06:28 PM8/15/14
to ansible...@googlegroups.com

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

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/3f867dbc-b474-4f04-bcf7-cfc8cd48733e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Michael DeHaan

unread,
Aug 16, 2014, 11:06:53 AM8/16/14
to ansible...@googlegroups.com
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.






John Oliver

unread,
Aug 27, 2014, 1:51:41 PM8/27/14
to ansible...@googlegroups.com
[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 <module>
    import ansible.utils as utils
  File "/home/joliver/ansible/lib/ansible/utils/__init__.py", line 23, in <module>
    import yaml
ImportError: No module named yaml

Michael DeHaan

unread,
Aug 27, 2014, 1:54:54 PM8/27/14
to ansible...@googlegroups.com
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




Reply all
Reply to author
Forward
0 new messages