Question

Can we configure Ansible to connect to self-hosted linux servers that run behind netscaler load balancers?

Posted August 31, 2020 140 views
AnsibleInitial Server SetupUbuntu 18.04

Hi, Thanks for your article. I have a self-hosted dockerswarm servers set-up that are running behind the netscaler load balancers.

In general scenarios, we provide SSH credentials to connect to remote servers. But, could you please help me if we can connect to the self-hosted docker manager node (Linux) machine that run behind load balancers.

These are not exposed to outside internet directly.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hi there @sravsdino,

It should be OK to use Ansible to manage a self-hosted server. All that it needs is an SSH connection. The configuration change will not be on the Ansible side but on your self-hosted setup. This would depend on your Network topology, but you need to either expose your Docker manager node via SSH to the world or use a VPN to allow connections to it so that your Ansible server could connect.

Another option would be to have your Ansible server hosted on the same network as your Docker manager node so that you would not have to expose SSH.

Regards,
Bobby

Submit an Answer