Error: ansible requires a json module, none found
If you don't want or can't install the python-simplejson module on remote servers, you can simply request the raw output instead:
> ansible webservers -i inventory -m ping -m raw
Or like I did, added it to my ~/.bash_profile
alias ansible="ansible -m raw"# And then simply running:> ansible webservers -i inventory -m ping
in centos 5.* version no python-simple json available on repo to donwload and install. you can simple use below mentioned method.
make sure both the source and destination should be accessed password less and from source to destination also password less.
use ssh-keygen -t rsa to generate keyssh-copy-id user@host_ip
"--- - hosts: (ansible host) become: yes remote_user: root gather_facts: false tasks: - name: copying copying temps shell: ssh (source) && rsync -parv /root/temp/* root@(Destination):/root/temp/"