From 9f20a49e308cd4cb4846d961d6b469e3f18c427f Mon Sep 17 00:00:00 2001
From: Aleksandr Kurbatov <ak@geant.org>
Date: Tue, 29 Apr 2025 08:42:56 +0100
Subject: [PATCH] `vrf_update` - import L3CoreService/general.yaml

Needed for `l3_services` dictionary used in roles for conditionals.
---
 geant/gap_ansible/playbooks/vrf_update.yaml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/geant/gap_ansible/playbooks/vrf_update.yaml b/geant/gap_ansible/playbooks/vrf_update.yaml
index 86624164..39315771 100644
--- a/geant/gap_ansible/playbooks/vrf_update.yaml
+++ b/geant/gap_ansible/playbooks/vrf_update.yaml
@@ -6,6 +6,11 @@
     - name: Include storage path configuration
       ansible.builtin.include_tasks: ../tasks/configure_storage.yaml
 
+    - name: Import standard general variables for GEANT L3 Core Services
+      # Needed to get `l3_services` dictionary for multiple checks in the roles invoked below.
+      ansible.builtin.include_vars:
+        file: /opt/ansible_inventory/geant_services/L3CoreService/general.yaml
+
     - name: Import standard variables for "{{ subscription.product.product_type }}/{{ subscription.vrf.vrf_name | upper }}"
       ansible.builtin.include_vars:
         dir: /opt/ansible_inventory/geant_services/{{ subscription.product.product_type }}/{{ subscription.vrf.vrf_name | upper }}
-- 
GitLab