I'm not sure exactly how I did it, but I seemed to have gotten a good 
installation.  At one point, it was weird and seemed to have blown away all 
of the paths to "ansible" (i.e., so I couldn't run "ansible").  I did make 
and make install in the Ansible dir and then that seemed to have fixed 
things up??

Jim

On Sunday, August 2, 2015 at 12:37:20 PM UTC-4, O haya wrote:
>
> http://docs.ansible.com/ansible/intro_installation.html#getting-ansible
>
> http://docs.ansible.com/ansible/intro_installation.html#getting-ansible
>
> On Sunday, August 2, 2015 at 12:34:53 PM UTC-4, O haya wrote:
>>
>> Hi,
>>
>> I'm trying to install Ansible from source, following this page:
>>
>>
>> However, I get to this step:
>>
>>
>>  
>>   
>>  
>>
>>   
>>
>> [root@centos65 ansible]#
>>   source ./hacking/env-setup
>>
>>   
>>
>> Ansible now needs
>>   setuptools in order to build. Install it using your package manager (
>> usually
>>   python-setuptools) or via pip (pip install setuptools).
>>
>>   
>>
>>  
>>
>>   
>>
>> Setting up Ansible to run
>>   out of checkout...
>>
>>   
>>
>>  
>>
>>   
>>
>> PATH=/root/ansible/bin:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/
>> bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
>>
>>   
>>
>> PYTHONPATH=/root/ansible/lib:
>>
>>   
>>
>> MANPATH=/root/ansible/docs/man:
>>
>>   
>>
>>  
>>
>>   
>>
>> Remember, you may wish to
>>   specify your host file with -i
>>
>>   
>>
>>  
>>
>>   
>>
>> Done!
>>
>>   
>>
>>  
>>
>>   
>>
>>
>> and I'm not quite sure what to do after that.
>>
>> I've tried various different things, like just do yum install 
>> python-setuptools, etc. but I think I'm always not ending up with a good 
>> Ansible installation.
>>
>> I'm currently like that, but when I try run win_ping I am getting:
>>
>> [root@centos65 ansible]# ansible windows -i host -m win_ping
>> An exception occurred during task execution. To see the full traceback, 
>> use -vvv. The error was: NameError: name '*AnsibleError' is not defined*
>> ansible1.enclave2.whatever.com | FAILED! => {
>>     "failed": true,
>>     "stdout": ""
>> }
>> [root@centos65 ansible]#
>>
>>
>>
>>
>> and:
>>
>> [root@centos65 ansible]# ansible windows -i host -m win_ping -vvvv
>> No config file found; using defaults
>> Loaded callback minimal of type stdout, v2.0
>> An exception occurred during task execution. The full traceback is:
>> Traceback (most recent call last):
>>   File "/root/ansible/lib/ansible/executor/process/worker.py", line 118, 
>> in run
>>     executor_result = TaskExecutor(host, task, job_vars, 
>> new_play_context, self._new_stdin, self._loader, shared_loader_obj).run()
>>   File "/root/ansible/lib/ansible/executor/task_executor.py", line 117, 
>> in run
>>     res = self._execute()
>>   File "/root/ansible/lib/ansible/executor/task_executor.py", line 265, 
>> in _execute
>>     self._connection = self._get_connection(variables)
>>   File "/root/ansible/lib/ansible/executor/task_executor.py", line 440, 
>> in _get_connection
>>     connection = connection_loader.get(conn_type, self._play_context, 
>> self._new_stdin)
>>   File "/root/ansible/lib/ansible/plugins/__init__.py", line 282, in get
>>     self._module_cache[path] = imp.load_source('.'.join([self.package, 
>> name]), path)
>>   File "/root/ansible/lib/ansible/plugins/connections/winrm.py", line 34, 
>> in <module>
>>     raise AnsibleError("winrm is not installed")
>> NameError: name 'AnsibleError' is not defined
>>
>> ansible1.enclave2.whatever.com | FAILED! => {
>>     "failed": true,
>>     "stdout": ""
>> }
>> [root@centos65 ansible]#
>>
>>
>>
>> So can anyone tell me the correct way to install this from source?
>>
>> Thanks,
>> Jim
>>
>>

-- 
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/b20ac1c3-dded-4c15-8ad9-cdb5aade5b43%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to