diff options
author | pmikus <peter.mikus@protonmail.ch> | 2024-02-13 13:01:54 +0100 |
---|---|---|
committer | pmikus <peter.mikus@protonmail.ch> | 2024-02-13 13:03:23 +0000 |
commit | e664d6963984e33a0efab939d83fd0f015f80fbb (patch) | |
tree | 7623cb8e7066ddb7038d291242bcc65c4161d149 /resources/libraries/bash/function/ansible.sh | |
parent | 3797578ec4b0c4662afa44e7556d13d19e2c8e30 (diff) |
feat(bootstrap): Add ability to load external NODE_FLAVOR
Signed-off-by: Peter Mikus <peter.mikus@protonmail.ch>
Change-Id: Ia6e07111af543280b2365840bced02f94cf91e75
Diffstat (limited to 'resources/libraries/bash/function/ansible.sh')
-rw-r--r-- | resources/libraries/bash/function/ansible.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/resources/libraries/bash/function/ansible.sh b/resources/libraries/bash/function/ansible.sh index 699f028511..6cf4d16f43 100644 --- a/resources/libraries/bash/function/ansible.sh +++ b/resources/libraries/bash/function/ansible.sh @@ -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: @@ -31,6 +31,9 @@ function ansible_adhoc () { "aws" | "c6in" | "c6gn" | "c7gn") INVENTORY_PATH="cloud_inventory" ;; + "x-"*) + INVENTORY_PATH="external_inventory" + ;; *) INVENTORY_PATH="lf_inventory" ;; @@ -73,6 +76,9 @@ function ansible_playbook () { "aws" | "c6in" | "c6gn" | "c7gn") INVENTORY_PATH="cloud_inventory" ;; + "x-"*) + INVENTORY_PATH="external_inventory" + ;; *) INVENTORY_PATH="lf_inventory" ;; |