1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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).
This commit is contained in:
Ricardo Carrillo Cruz 2017-08-29 12:24:57 +02:00 committed by GitHub
parent 8e6c0ca599
commit 549ef0f45d

View file

@ -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