Hi Team,
I am new to ansible
please help on this
here I am getting error like this :
178.128.22.23 | UNREACHABLE! => {
“changed”: false,
“msg”: “Failed to connect to the host via ssh.”,
“unreachable”: true
}
My steps involved:
my ip: 198.17.22.24
I have generated ssh key in gitbash and then added my key into the another system(linux)
command used in gitbash $ssh-cppoy-id 178.128.22.23
docker compose file:
version: “3.0”
kind: “compose”
meta:
name: “Ansible”
family: “info”
app: “Ansible”
version: “1.0”
org-id: “0.0.0”
services:
service: bubble:5000/int/info/ansible/service:v1.0
forecePullimage: true
command: echo -e '[db]\n178.128.22.23\n > /etc/ansible/hosts ; ansible all -m “ping”
ports:
- mapping: 1166:1166
name: management
routing: path
deployment:
dev:
service:
environment:
DEBUG:true
instances: 1
cpu: 0.5
mem: 256
then execute the command : $infy run update compose.yaml (office personal commands)
in kibana logs error:
178.128.22.23 | UNREACHABLE! => {
“changed”: false,
“msg”: “Failed to connect to the host via ssh.”,
“unreachable”: true
}
my environments very different :
using : infy cli we have to deploy app and run our own commands and check the status in https:infy.com.app.ansible(ansible not installed in my system,we have to deploy and run in server)
if the app is succesfully installed and run then we have to check the logs in kibana.
Thanks in advance