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:
parent
8e6c0ca599
commit
549ef0f45d
1 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue