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