kayobe/ansible/group_vars/all/switches/mellanox
Mark Goddard ae340128e6 Make ansible_host optional for all switch types
The Juniper device support allows ansible_host variable to not be set
for a switch, in which case the inventory_hostname will be used instead.

This change applies this default consistently across all switch types.

Change-Id: Ibc1e673a6b988f2e8d7bb6c62d30ccdb7ce96351
Story: 2004358
Task: 27958
2018-11-27 18:56:27 +00:00

13 lines
387 B
Plaintext

---
# Switch configuration.
###############################################################################
# Authentication configuration.
# For Mellanox switches, this defines a 'provider' argument to the
# mellanox-switch role.
switch_mellanox_provider:
host: "{{ ansible_host|default(inventory_hostname) }}"
username: "{{ ansible_user }}"
auth_pass: "{{ switch_auth_pass }}"