Getting error while run ansible play book as the controller server is unable to connect to the effected server

I want to automate the server healtcheck in multiple APIGEE servers using ansible. I have installed and configured ansible in controller server and added effected server in /etc/ansible/hosts file. I have created a playbook for server healthcheck on that controller server and tested that some of the server I am able to connect but few of them connection is refused.

I have researched and get to know few things.

1.restarted the firewall

2.Installed openssh-server

3. Restarted sshd services

But issue is still there. I am able to login separately to that node and it is pingable from the controller server.

I am getting the below error in while run the playbook:

fatal: [10.113.73.130]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh: connect to host 10.113.73.130 port 22: Connection refused", "unreachable": true}

Any type of suggestion or advise will be helpful.

0 0 236
0 REPLIES 0