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




On Wed, Aug 27, 2014 at 1:51 PM, John Oliver <[email protected]> wrote:

> [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
>
> On Saturday, August 16, 2014 8:06:53 AM UTC-7, Michael DeHaan wrote:
>
>> 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.
>>
>>
>>
>>
>>
>>
>> On Fri, Aug 15, 2014 at 7:06 PM, Henry Finucane <[email protected]>
>> wrote:
>>
>>> I've seen that output when trying to run a blank module- are you doing
>>> fun things with modules or even action plugins?
>>> On Aug 15, 2014 2:08 PM, "John Oliver" <[email protected]> wrote:
>>>
>>>> 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 :-)
>>>>
>>>> --
>>>> 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 [email protected].
>>>> To post to this group, send email to [email protected].
>>>>
>>>> To view this discussion on the web visit https://groups.google.com/d/
>>>> msgid/ansible-project/3f867dbc-b474-4f04-bcf7-
>>>> cfc8cd48733e%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/ansible-project/3f867dbc-b474-4f04-bcf7-cfc8cd48733e%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>  --
>>> 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 [email protected].
>>> To post to this group, send email to [email protected].
>>> To view this discussion on the web visit https://groups.google.com/d/
>>> msgid/ansible-project/CAGYSzJ8QtLnM0KL_eM5LB1%
>>> 3Dp91tCFJFm1Xwofu6CSvZ4_OuTQQ%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/ansible-project/CAGYSzJ8QtLnM0KL_eM5LB1%3Dp91tCFJFm1Xwofu6CSvZ4_OuTQQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  --
> 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 [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/c0cd9f22-5fbb-45cd-a5bc-46703b0d63b2%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/c0cd9f22-5fbb-45cd-a5bc-46703b0d63b2%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgx8u-5k_1HLN705OkeqktduXPT4muLD9UaO4M8vzUtFJA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to