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/d97ab8ab-f643-4522-9632-7096a81e0db0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
