From 6082a17d1caf5a595e574f546114d2fc418ae7ec Mon Sep 17 00:00:00 2001 From: Todd Malsbary Date: Mon, 2 May 2022 14:50:32 -0700 Subject: [PATCH] Fix error during jump_server_clean This fixes a failure in CI runs where ssh to the jump server fails because host key checking is enabled: the kubespray ansible.cfg explicitly disables it, so source the ANSIBLE_CONFIG environment variable before teardown. Signed-off-by: Todd Malsbary Change-Id: I4dc8c2465536d32243ca93e639b4282c31677430 --- deploy/kud/kud_bm_launch.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deploy/kud/kud_bm_launch.sh b/deploy/kud/kud_bm_launch.sh index 6b5aa89..9ba2d40 100755 --- a/deploy/kud/kud_bm_launch.sh +++ b/deploy/kud/kud_bm_launch.sh @@ -64,6 +64,8 @@ function kud_install { } function kud_reset { + # Pick up the kubespray ANSIBLE_CONFIG from /etc/environment + source /etc/environment pushd ${KUDPATH}/kud/hosting_providers/vagrant/ ansible-playbook -i inventory/hosts.ini /opt/kubespray-${KUBESPRAY_VERSION}/reset.yml \ --become --become-user=root -e reset_confirmation=yes -- 2.16.6