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

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

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.

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?

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.