however collecting information from internet and gogling I made it work.
---
Although if you fetch from internet everything will work just fine except if you dont have internet and you dont have sudo permission
I had to configure few things manually.
1. First bring the downloaded ansible zip file and extract it,
2. navigate to ansible folder and run command python setup.py install --user
(this will install the ansible at user level which woudl be ~/.local/python2.6/site-packages/ansible-2.20-py2.6.egg/ansible)
3. once install run the ansible command. since I downloaded the devel branch I assume the developers have symlinked the scripts in bin folder to the python scripts in the cli directory so I manually symlinked before the install and re-ran after I symlinked all scritps in bin folder.
4. if you install at user level (as in step 1) from downlaoded zip folder than the core modules and basic one will be missing.
the fix is download the ansible-core-modules from this location (https://github.com/ansible/ansible-modules-core/ https://github.com/ansible/ansible-modules-extras) and set them int the environemnt variable:
setenv ANSIBLE_LIBRARY /Ansible/Modules/Extras/Path
run the command:
ansible local -i hosts -m command -a "uptime"
127.0.0.1 | SUCCESS | rc=0 >>
14:27:32 up 17 days , 5:19, 32 users, load average: 0.08, 0.02, 0.01
or ping:
ansible local -i hosts -m ping
127.0.0.1 | SUCCESS => {
"changed": false,
"ping" : "pong"
}
I have setup host file in my current working directory which points locals to my machine.