From a0bd6320a4ec1acd06e2f28839db96b65e2b444a Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Tue, 6 Nov 2018 18:28:41 +0000 Subject: [PATCH] Move group_vars for switches group to all group 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 --- ansible/group_vars/{ => all}/switches/config | 0 ansible/group_vars/{ => all}/switches/dell | 0 ansible/group_vars/{ => all}/switches/dell-powerconnect | 0 ansible/group_vars/{ => all}/switches/junos | 0 ansible/group_vars/{ => all}/switches/mellanox | 0 5 files changed, 0 insertions(+), 0 deletions(-) rename ansible/group_vars/{ => all}/switches/config (100%) rename ansible/group_vars/{ => all}/switches/dell (100%) rename ansible/group_vars/{ => all}/switches/dell-powerconnect (100%) rename ansible/group_vars/{ => all}/switches/junos (100%) rename ansible/group_vars/{ => all}/switches/mellanox (100%) diff --git a/ansible/group_vars/switches/config b/ansible/group_vars/all/switches/config similarity index 100% rename from ansible/group_vars/switches/config rename to ansible/group_vars/all/switches/config diff --git a/ansible/group_vars/switches/dell b/ansible/group_vars/all/switches/dell similarity index 100% rename from ansible/group_vars/switches/dell rename to ansible/group_vars/all/switches/dell diff --git a/ansible/group_vars/switches/dell-powerconnect b/ansible/group_vars/all/switches/dell-powerconnect similarity index 100% rename from ansible/group_vars/switches/dell-powerconnect rename to ansible/group_vars/all/switches/dell-powerconnect diff --git a/ansible/group_vars/switches/junos b/ansible/group_vars/all/switches/junos similarity index 100% rename from ansible/group_vars/switches/junos rename to ansible/group_vars/all/switches/junos diff --git a/ansible/group_vars/switches/mellanox b/ansible/group_vars/all/switches/mellanox similarity index 100% rename from ansible/group_vars/switches/mellanox rename to ansible/group_vars/all/switches/mellanox