Revert "fix(jobspec): Delete ipsec nfv density tests"
[csit.git] / resources / libraries / bash / function / ansible.sh
index a46c782..6cf4d16 100644 (file)
@@ -1,6 +1,6 @@
 #!/usr/bin/env bash
 
-# Copyright (c) 2023 Cisco and/or its affiliates.
+# Copyright (c) 2024 Cisco and/or its affiliates.
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # You may obtain a copy of the License at:
@@ -28,9 +28,12 @@ function ansible_adhoc () {
     set -exuo pipefail
 
     case "$FLAVOR" in
-        "aws" | "c6in" | "c6gn")
+        "aws" | "c6in" | "c6gn" | "c7gn")
             INVENTORY_PATH="cloud_inventory"
             ;;
+        "x-"*)
+            INVENTORY_PATH="external_inventory"
+            ;;
         *)
             INVENTORY_PATH="lf_inventory"
             ;;
@@ -70,9 +73,12 @@ function ansible_playbook () {
     set -exuo pipefail
 
     case "$FLAVOR" in
-        "aws" | "c6in" | "c6gn")
+        "aws" | "c6in" | "c6gn" | "c7gn")
             INVENTORY_PATH="cloud_inventory"
             ;;
+        "x-"*)
+            INVENTORY_PATH="external_inventory"
+            ;;
         *)
             INVENTORY_PATH="lf_inventory"
             ;;