From c86b445f29cd96d4c083187a17f351b89721b1c7 Mon Sep 17 00:00:00 2001 From: Longxiang Lyu <35479537+lolyu@users.noreply.github.com> Date: Tue, 15 Dec 2020 21:40:39 +0800 Subject: [PATCH] [veos_vtb] Add connection variable to 'sonic' group (#2639) By default, Ansible will search for group variables from the directory where inventory file locates. For vtestbed Pytest users who calls Pytest with `tests/veos_vtb`, Ansible fails to find the groups variables defined under `ansible/group_vars`, thus fail to use `multi_passwd_ss`. So let's add those connection variables directly to `veos_vtb` Signed-off-by: Longxiang Lyu --- ansible/veos_vtb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ansible/veos_vtb b/ansible/veos_vtb index dd4f6ccc64..be33f9f379 100644 --- a/ansible/veos_vtb +++ b/ansible/veos_vtb @@ -54,6 +54,8 @@ all: sonic: vars: mgmt_subnet_mask_length: 24 + ansible_connection: multi_passwd_ssh + ansible_altpassword: YourPaSsWoRd hosts: vlab-01: ansible_host: 10.250.0.101