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).
pull/28755/head
Ricardo Carrillo Cruz 7 years ago committed by GitHub
parent 8e6c0ca599
commit 549ef0f45d

@ -1,13 +1,13 @@
--- ---
cli: cli:
host: "{{ inventory_hostname }}" host: "{{ ansible_ssh_host }}"
username: "{{ nxos_cli_user | default('admin') }}" #username: "{{ nxos_cli_user | default('admin') }}"
password: "{{ nxos_cli_pass | default('admin') }}" #password: "{{ nxos_cli_pass | default('admin') }}"
transport: cli transport: cli
nxapi: nxapi:
host: "{{ inventory_hostname }}" host: "{{ ansible_ssh_host }}"
username: "{{ nxos_nxapi_user | default('admin') }}" #username: "{{ nxos_nxapi_user | default('admin') }}"
password: "{{ nxos_nxapi_pass | default('admin') }}" #password: "{{ nxos_nxapi_pass | default('admin') }}"
transport: nxapi transport: nxapi
use_ssl: no use_ssl: no

Loading…
Cancel
Save