ok Thanks Kiai.
I removed the ansible_connection=local. Now I get this message
<10.0.6.216> ESTABLISH SSH CONNECTION FOR USER: adserv
<10.0.6.216> SSH: EXEC ssh -C -q -o ControlMaster=auto -o
ControlPersist=60s -o KbdInteractiveAuthentication=no -o
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey
-o PasswordAuthentication=no -o User=adserv -o ConnectTimeout=10 -o
ControlPath=/home/ec2-user/.ansible/cp/ansible-ssh-%h-%p-%r 10.0.6.216
'/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo
$HOME/.ansible/tmp/ansible-tmp-1470429880.87-16825574391431 `" && echo
ansible-tmp-1470429880.87-16825574391431="` echo
$HOME/.ansible/tmp/ansible-tmp-1470429880.87-16825574391431 `" ) && sleep
0'"'"''
*fatal: [10.0.6.216]: UNREACHABLE! => {"changed": false, "msg": "Failed to
connect to the host via ssh.", "unreachable": true}*
*Any clue? *
On Friday, August 5, 2016 at 3:47:33 PM UTC-4, Anushri Mishra wrote:
>
> hi, I am running examples from git-ansible examples project and running
> "tomcat-standalone" server example.
> Not seeing any changes on the target host. Below is the output:
>
> Also I changed the hosts file to be :
>
> [tomcat-servers]
>
> server-ip ansible_connection=local
>
>
> and changed group-vars/tomcat-servers to have my server name credentials.
>
>
>
> <* TASK [tomcat : Install Tomcat init script] >*
>
> * -------------------------------------------- *
>
> * \ ^__^*
>
> * \ (oo)\_______*
>
> * (__)\ )\/\*
>
> * ||----w |*
>
> * || ||*
>
>
> *changed: [10.0.6.216] => {"changed": true, "checksum":
> "c41c9db7fc9aaaaf22503b0823f6d00508750170", "dest": "/etc/init.d/tomcat",
> "gid": 0, "group": "root", "md5sum": "26ecaa252ecb3fa4567fa96192406bf6",
> "mode": "0755", "owner": "root", "size": 3055, "src":
> "/home/ec2-user/.ansible/tmp/ansible-tmp-1470423835.51-58869949256264/source",
>
> "state": "file", "uid": 0}*
>
>
> *I dont see this script installed in the specific location given. *
>
>
> *Any clue?*
>
>
> *Thanks,*
>
> *Anushri *
>
--
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/cdb501e5-f272-4763-8134-b3b14a858e8d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.