|
|
@ -618,7 +618,7 @@ Example ssh config file (~/.ssh/config)
|
|
|
|
|
|
|
|
|
|
|
|
.. code-block:: ini
|
|
|
|
.. code-block:: ini
|
|
|
|
|
|
|
|
|
|
|
|
Host junos
|
|
|
|
Host junos01
|
|
|
|
HostName junos01
|
|
|
|
HostName junos01
|
|
|
|
User myuser
|
|
|
|
User myuser
|
|
|
|
|
|
|
|
|
|
|
@ -627,8 +627,9 @@ Example ssh config file (~/.ssh/config)
|
|
|
|
Example Ansible inventory file
|
|
|
|
Example Ansible inventory file
|
|
|
|
|
|
|
|
|
|
|
|
.. code-block:: ini
|
|
|
|
.. code-block:: ini
|
|
|
|
|
|
|
|
|
|
|
|
[junos]
|
|
|
|
[junos]
|
|
|
|
junos
|
|
|
|
junos01
|
|
|
|
|
|
|
|
|
|
|
|
[junos:vars]
|
|
|
|
[junos:vars]
|
|
|
|
ansible_connection=netconf
|
|
|
|
ansible_connection=netconf
|
|
|
@ -636,6 +637,7 @@ Example Ansible inventory file
|
|
|
|
ansible_user=myuser
|
|
|
|
ansible_user=myuser
|
|
|
|
ansible_ssh_pass=!vault...
|
|
|
|
ansible_ssh_pass=!vault...
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.. note:: Using ``ProxyCommand`` with passwords via variables
|
|
|
|
.. note:: Using ``ProxyCommand`` with passwords via variables
|
|
|
|
|
|
|
|
|
|
|
|
By design, SSH doesn't support providing passwords via environment variables.
|
|
|
|
By design, SSH doesn't support providing passwords via environment variables.
|
|
|
|