a0bd6320a4
There are various playbook group variables used to configure switches, defined in files in ansible/group_vars/switches/. In Ansible 2.3 it was possible to override these via inventory group variables. In Ansible 2.4+ this is no longer possible, and inventory group variables have a lower precedence than playbook group variables. To resolve this, this change moves the switch configuration defaults to the all group, as is done for other global defaults. The slight downside is that these variables enter the namespace of every host, but there aren't too many of them so it shouldn't be a problem. Change-Id: I1a580a7b88a3e088aa7d5129290427320401f46b Story: 2004278 Task: 27827
29 lines
987 B
Plaintext
29 lines
987 B
Plaintext
---
|
|
# Switch configuration.
|
|
|
|
###############################################################################
|
|
# Authentication configuration.
|
|
|
|
# For Juniper switches, this defines a 'provider' argument to the junos_*
|
|
# modules.
|
|
switch_junos_provider:
|
|
host: "{{ ansible_host|default(inventory_hostname) }}"
|
|
username: "{{ ansible_user }}"
|
|
password: "{{ ansible_ssh_pass|default(omit) }}"
|
|
ssh_keyfile: "{{ ansible_ssh_private_key_file|default(omit) }}"
|
|
timeout: "{{ switch_junos_timeout }}"
|
|
|
|
###############################################################################
|
|
# Configuration format.
|
|
|
|
# Format of configuration in junos_switch_config and
|
|
# junos_switch_interface_config. May be one of 'set', 'text' or 'json'.
|
|
switch_junos_config_format: text
|
|
|
|
###############################################################################
|
|
# Timeout.
|
|
|
|
# Timeout in seconds for communicating with the network device either for
|
|
# connecting or sending commands.
|
|
switch_junos_timeout: 10
|