According to my understanding I exactly did everything you suggested in the 
previous step.

Then installed it again.

The result is:

> $ ansible all -m ping
> bash: /usr/local/bin/ansible: No such file or directory
>

But it seems that this works:

> sudo ansible all -m ping

... or at least it initiates the ssh session but does not find the keys... 
since it is looking for them in '/root/.ssh' instead of my user's directory.
Is that the desired behaviour, that ansible could be run only by root (on 
Ubuntu)?





2014. december 21., vasárnap 19:02:12 UTC+1 időpontban [email protected] 
a következőt írta:
>
> Seems like you still need some more cleanup to do.  Apt-get remove it, 
> then remove everyone ansible on your system, including any .ansible.cfg or 
> .ansible directories, and anything left in /usr/local and /etc.  And then 
> do a fresh install from scratch and see if that helps.  Make sure you don't 
> have any ANSIBLE environment variables set the old paths too.
>
> Jay
>
> On Sunday, December 21, 2014 11:46:01 AM UTC-6, Bence Takács wrote:
>>
>> I deleted the remaining files from /usr/local/bin and reinstalled ansible 
>> with apt-get again, but something is wrong:
>>
>> $ ansible all -m ping
>>> bash: /usr/local/bin/ansible: No such file or directory
>>>
>>
>> Any tips?
>>
>>
>> 2014. december 21., vasárnap 18:29:24 UTC+1 időpontban Bence Takács a 
>> következőt írta:
>>>
>>> Now I see what is the main issue: first I tried to install ansible from 
>>> source (I found a howto about that first...)
>>>
>>> And it has no 'remove' or 'uninstall' build target. So I just deleted 
>>> the directories I found...
>>>
>>> Now I tried some stronger cleanup: 
>>>
>>>> sudo apt-get remove ansible
>>>
>>> sudo pip uninstall ansible
>>>
>>>  
>>> I also have some remainings:
>>>
>>>> $ whereis ansible
>>>> ansible: /etc/ansible /usr/local/bin/ansible
>>>>
>>>
>>> How should I remove those?
>>>
>>> Regards:
>>>    Bence
>>>
>>> 2014. december 20., szombat 11:31:33 UTC+1 időpontban Bence Takács a 
>>> következőt írta:
>>>>
>>>> Following the official Ubuntu guide (
>>>> http://docs.ansible.com/intro_installation.html#latest-releases-via-apt-ubuntu)
>>>>  
>>>> I experienced the following problem:
>>>>
>>>> $ ansible --version
>>>>> ansible 1.9
>>>>>   configured module search path = None
>>>>> $ ansible all -m ping
>>>>> nas | FAILED => module ping not found in configured module paths.  
>>>>> Additionally, core modules are missing. If this is a checkout, run 'git 
>>>>> submodule update --init --recursive' to correct this problem.
>>>>>
>>>>
>>>> Where could I find the default modules like 'ping'? 
>>>>
>>>> The /usr/share/ansible directory is empty, 
>>>> The /etc/ansible directory contains only the ansible.cfg and the hosts 
>>>> file (I already modified the latter and added my 'nas').
>>>> The ~/.ansible cotains only an empty directory called cp
>>>>
>>>> If I run the suggested command, it says:
>>>>
>>>> $ git submodule update --init --recursive
>>>>> fatal: Not a git repository (or any of the parent directories): .git
>>>>>
>>>>
>>>> So: where are the default modules or how can I get them? :-)
>>>>
>>>> I'm on Ubuntu 14.04
>>>>
>>>> Regards:
>>>>    Bence
>>>>
>>>>
>>>>

-- 
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/7f1c717e-657f-42aa-a599-5923fdd01d56%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to