Update ssh_config to accept file path

This commit is contained in:
Ganesh B. Nalawade 2018-07-04 11:37:35 +05:30
commit d1ff8e2dca
3 changed files with 19 additions and 14 deletions

View file

@ -604,11 +604,14 @@ Enabling jump host setting
--------------------------
Bastion/jump host with netconf connection can be enable using
- Setting Ansible variable``ansible_netconf_ssh_config`` or
- Setting environment variable ``ANSIBLE_NETCONF_SSH_CONFIG`` or
- Setting ``ssh_config=Ture`` under ``netconf_connection`` section in ansible configuration file
- Setting Ansible variable``ansible_netconf_ssh_config`` either to ``True`` or custom ssh config file path
- Setting environment variable ``ANSIBLE_NETCONF_SSH_CONFIG`` to ``True`` or custom ssh config file path
- Setting ``ssh_config = 1`` or ``ssh_config = <ssh-file-path>``under ``netconf_connection`` section
The ssh config file (~/.ssh/config) should have the correct proxycommand and required ssh configuration variables
If the configuration variable is set to 1 the proxycommand and other ssh variables are read from
default ssh config file (~/.ssh/config).
If the configuration variable is set to file path the proxycommand and other ssh variables are read
from the given custom ssh file path
Example ssh config file (~/.ssh/config)
---------------------------------------