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 <todd.malsbary@intel.com>
Change-Id: I4dc8c2465536d32243ca93e639b4282c31677430
}
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