How to get Ansible to work with local ip addresses when connected via VPN?
Good afternoon. There is one local network to which I connect via VPN, and want it to work from the network to your local machine where you installed Ansible. The thing is that in both networks ip address: 192.168.1.X. For VPN I'm connecting to a single external ip address, and then I have to go to all other machines on the network. How to implement it? Just indicate in the inventory the address of the form 192.168.1.X? But not useful if Ansible in the first network?
And you can you do to cling on ssh to the hosts of the network which is behind a vpn?
isaias_Williamson answered on July 2nd 19 at 13:25
Depends on routing on Your computer: if 192.168.1.X is specified on the VPN interface and not overlapping the first network, there will be no problem to walk (but then in a local network 192.168.1.X will not fall).
As pointed out by estoy - if you now go to ssh, and ansible will be no problem.