# not seeing any changes on target host(Running git example of deploying stand-alone tomcat server)

**URL:** <https://forum.ansible.com/t/not-seeing-any-changes-on-target-host-running-git-example-of-deploying-stand-alone-tomcat-server/22224>\
**Category:** Ansible Project\
**Created:** [August 5, 2016, 7:47pm UTC](https://forum.ansible.com/t/not-seeing-any-changes-on-target-host-running-git-example-of-deploying-stand-alone-tomcat-server/22224 "2016-08-05T19:47:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anushri\_Mishra](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@Anushri\_Mishra](https://forum.ansible.com/u/Anushri_Mishra)\
**Post date:** [August 5, 2016, 7:47pm UTC](https://forum.ansible.com/t/not-seeing-any-changes-on-target-host-running-git-example-of-deploying-stand-alone-tomcat-server/22224/1 "2016-08-05T19:47:33Z")

</div>

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] \>**

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [August 5, 2016, 8:24pm UTC](https://forum.ansible.com/t/not-seeing-any-changes-on-target-host-running-git-example-of-deploying-stand-alone-tomcat-server/22224/2 "2016-08-05T20:24:07Z")

</div>

This is you problem, ansible\_connection=local  
Here you say for server-ip use local connection it is the same as localhost.  
So everything you do against this IP will by done on localhost aka ansible control machine aka where you run your ansible-playbook.

---

<div class="post-metadata">

**Author:** ![Anushri\_Mishra](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@Anushri\_Mishra](https://forum.ansible.com/u/Anushri_Mishra)\
**Post date:** [August 5, 2016, 8:46pm UTC](https://forum.ansible.com/t/not-seeing-any-changes-on-target-host-running-git-example-of-deploying-stand-alone-tomcat-server/22224/3 "2016-08-05T20:46:47Z")

</div>

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?**

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [August 5, 2016, 9:13pm UTC](https://forum.ansible.com/t/not-seeing-any-changes-on-target-host-running-git-example-of-deploying-stand-alone-tomcat-server/22224/4 "2016-08-05T21:13:03Z")

</div>

To connect over ssh you need one of two things ssh keys or username and password. Have you provides any of those? If so how?  
The message indicate you have not.
