From a4e932ee9fa76b8a65736cfac22b9906da7e7634 Mon Sep 17 00:00:00 2001 From: John R Barker Date: Wed, 4 Apr 2018 14:45:57 +0100 Subject: [PATCH] ansible_ssh_pass is the ENV variable (#38035) * ansible_ssh_pass is the ENV variable * ansible_ssh_pass then ansible_password * priority is top(lower)->bottom(higher) --- lib/ansible/plugins/connection/netconf.py | 3 ++- lib/ansible/plugins/connection/network_cli.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/ansible/plugins/connection/netconf.py b/lib/ansible/plugins/connection/netconf.py index e23fbd4402..62ab6c72c9 100644 --- a/lib/ansible/plugins/connection/netconf.py +++ b/lib/ansible/plugins/connection/netconf.py @@ -66,7 +66,8 @@ options: - Configures the user password used to authenticate to the remote device when first establishing the SSH connection. vars: - - name: ansible_pass + - name: ansible_password + - name: ansible_ssh_pass private_key_file: description: - The private SSH key or certificate file used to to authenticate to the diff --git a/lib/ansible/plugins/connection/network_cli.py b/lib/ansible/plugins/connection/network_cli.py index b96fb1917c..3f198d1120 100644 --- a/lib/ansible/plugins/connection/network_cli.py +++ b/lib/ansible/plugins/connection/network_cli.py @@ -61,7 +61,8 @@ options: - Configures the user password used to authenticate to the remote device when first establishing the SSH connection. vars: - - name: ansible_pass + - name: ansible_password + - name: ansible_ssh_pass private_key_file: description: - The private SSH key or certificate file used to to authenticate to the