mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
change inventory_hostname to ansible_host to fix test (#32890)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
parent
c40de24e9c
commit
11de330372
2 changed files with 4 additions and 4 deletions
|
@ -23,7 +23,7 @@
|
||||||
provider: "{{ cli }}"
|
provider: "{{ cli }}"
|
||||||
username: "{{ nxos_cli_user | default('admin') }}"
|
username: "{{ nxos_cli_user | default('admin') }}"
|
||||||
password: "{{ nxos_cli_pass | default('admin') }}"
|
password: "{{ nxos_cli_pass | default('admin') }}"
|
||||||
host: "{{ inventory_hostname }}"
|
host: "{{ ansible_host }}"
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert: &true
|
- assert: &true
|
||||||
|
@ -50,7 +50,7 @@
|
||||||
provider: "{{ cli }}"
|
provider: "{{ cli }}"
|
||||||
username: "{{ nxos_cli_user | default('admin') }}"
|
username: "{{ nxos_cli_user | default('admin') }}"
|
||||||
password: "{{ nxos_cli_pass | default('admin') }}"
|
password: "{{ nxos_cli_pass | default('admin') }}"
|
||||||
host: "{{ inventory_hostname }}"
|
host: "{{ ansible_host }}"
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert: *true
|
- assert: *true
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
provider: "{{ nxapi }}"
|
provider: "{{ nxapi }}"
|
||||||
username: "{{ nxos_nxapi_user | default('admin') }}"
|
username: "{{ nxos_nxapi_user | default('admin') }}"
|
||||||
password: "{{ nxos_nxapi_pass | default('admin') }}"
|
password: "{{ nxos_nxapi_pass | default('admin') }}"
|
||||||
host: "{{ inventory_hostname }}"
|
host: "{{ ansible_host }}"
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert: &true
|
- assert: &true
|
||||||
|
@ -53,7 +53,7 @@
|
||||||
provider: "{{ nxapi }}"
|
provider: "{{ nxapi }}"
|
||||||
username: "{{ nxos_nxapi_user | default('admin') }}"
|
username: "{{ nxos_nxapi_user | default('admin') }}"
|
||||||
password: "{{ nxos_nxapi_pass | default('admin') }}"
|
password: "{{ nxos_nxapi_pass | default('admin') }}"
|
||||||
host: "{{ inventory_hostname }}"
|
host: "{{ ansible_host }}"
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- assert: *true
|
- assert: *true
|
||||||
|
|
Loading…
Reference in a new issue