From 549ef0f45d3c6a331c4074ba8a91481dabbbc08c Mon Sep 17 00:00:00 2001 From: Ricardo Carrillo Cruz Date: Tue, 29 Aug 2017 12:24:57 +0200 Subject: [PATCH] Change inventory_hostname to ansible_ssh_host on nxos group_vars (#28752) We need to use IP address, as inventory_hostname returns an UUID from openstack.py inventory in our CI. Also, commenting the username/pass as we set them in the inventory (we shall change this in the future). --- test/integration/group_vars/nxos.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/integration/group_vars/nxos.yaml b/test/integration/group_vars/nxos.yaml index 2c3f1a288d..2625558514 100644 --- a/test/integration/group_vars/nxos.yaml +++ b/test/integration/group_vars/nxos.yaml @@ -1,13 +1,13 @@ --- cli: - host: "{{ inventory_hostname }}" - username: "{{ nxos_cli_user | default('admin') }}" - password: "{{ nxos_cli_pass | default('admin') }}" + host: "{{ ansible_ssh_host }}" + #username: "{{ nxos_cli_user | default('admin') }}" + #password: "{{ nxos_cli_pass | default('admin') }}" transport: cli nxapi: - host: "{{ inventory_hostname }}" - username: "{{ nxos_nxapi_user | default('admin') }}" - password: "{{ nxos_nxapi_pass | default('admin') }}" + host: "{{ ansible_ssh_host }}" + #username: "{{ nxos_nxapi_user | default('admin') }}" + #password: "{{ nxos_nxapi_pass | default('admin') }}" transport: nxapi use_ssl: no