aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/bash
diff options
context:
space:
mode:
Diffstat (limited to 'resources/libraries/bash')
-rw-r--r--resources/libraries/bash/entry/per_patch_device.sh3
-rw-r--r--resources/libraries/bash/function/ansible.sh16
2 files changed, 10 insertions, 9 deletions
diff --git a/resources/libraries/bash/entry/per_patch_device.sh b/resources/libraries/bash/entry/per_patch_device.sh
index 01e4de0089..efa925eda0 100644
--- a/resources/libraries/bash/entry/per_patch_device.sh
+++ b/resources/libraries/bash/entry/per_patch_device.sh
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
-# Copyright (c) 2020 Cisco and/or its affiliates.
+# Copyright (c) 2021 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:
@@ -57,5 +57,4 @@ select_vpp_device_tags || die
compose_pybot_arguments || die
run_pybot || die
move_archives || die
-archive_test_results "csit_current" || die
die_on_pybot_error || die
diff --git a/resources/libraries/bash/function/ansible.sh b/resources/libraries/bash/function/ansible.sh
index 1263412dd5..f522faa93b 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) 2020 Cisco and/or its affiliates.
+# Copyright (c) 2021 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:
@@ -34,9 +34,10 @@ function ansible_adhoc () {
die "Failed to read hosts from working topology!"
}
pushd "${TOOLS_DIR}"/testbed-setup/ansible || die "Pushd failed!"
- ANSIBLE_STDOUT_CALLBACK=yaml \
- ANSIBLE_PIPELINING=true \
- ansible \
+ export ANSIBLE_HOST_KEY_CHECKING=False
+ export ANSIBLE_STDOUT_CALLBACK=yaml
+ export ANSIBLE_PIPELINING=true
+ ansible-playbook \
--vault-password-file=vault_pass \
--extra-vars '@vault.yml' \
--inventory inventories/lf_inventory/hosts site.yaml \
@@ -65,9 +66,10 @@ function ansible_playbook () {
die "Failed to read hosts from working topology!"
}
pushd "${TOOLS_DIR}"/testbed-setup/ansible || die "Pushd failed!"
- ANSIBLE_STDOUT_CALLBACK=yaml \
- ANSIBLE_PIPELINING=true \
- ansible-playbook \
+ export ANSIBLE_HOST_KEY_CHECKING=False
+ export ANSIBLE_STDOUT_CALLBACK=yaml
+ export ANSIBLE_PIPELINING=true
+ ansible-playbook \
--vault-password-file=vault_pass \
--extra-vars '@vault.yml' \
--inventory inventories/lf_inventory/hosts site.yaml \