From: Rihab Banday Date: Fri, 11 Sep 2020 12:49:54 +0000 (+0200) Subject: Disable Ansible host key checking in BMRA container X-Git-Tag: opnfv-10.0.0~14 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?p=kuberef.git;a=commitdiff_plain;h=f184a05416490e3ad7a7e9c58b982c0e1b3678d7 Disable Ansible host key checking in BMRA container This change avoids the need to copy SSH keys to the provisioned hosts during BMRA provisioning by loading the respective env variable inside the BMRA container. Change-Id: I30cef25f65492da26435259b7f028f79c3b8cb01 Signed-off-by: Rihab Banday Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/71081 Tested-by: jenkins-ci Reviewed-by: Michael Pedersen Reviewed-by: Georg Kunz --- diff --git a/functions.sh b/functions.sh index a4753e1..e64bf91 100755 --- a/functions.sh +++ b/functions.sh @@ -174,6 +174,7 @@ cp ${PROJECT_ROOT}/${INSTALLER}/inventory.ini \ cp ${PROJECT_ROOT}/${INSTALLER}/{all.yml,kube-node.yml} \ ${PROJECT_ROOT}/container-experience-kits/group_vars/ sudo docker run --rm \ +-e ANSIBLE_CONFIG=/bmra/ansible.cfg \ -v ${PROJECT_ROOT}/container-experience-kits:/bmra \ -v ~/.ssh/:/root/.ssh/ rihabbanday/bmra-install:centos \ ansible-playbook -i /bmra/inventory.ini /bmra/playbooks/cluster.yml