From 2a91ed613c6b3677c86a1fa1991db053dc578104 Mon Sep 17 00:00:00 2001 From: Drew Walters Date: Fri, 6 Mar 2020 15:53:10 +0000 Subject: [PATCH] tools: Use local connection for ansible runner The scripts in the tools/gate directory do not run ansible with a local conenction; the ansible playbooks attempt to SSH to a VM on localhost and fail. This change adds the local connection flag in order to run directly on the host. Change-Id: I3d7c7b6d21fc4972bd8a084ea49c945af4bfc518 Signed-off-by: Drew Walters --- tools/gate/00_setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/gate/00_setup.sh b/tools/gate/00_setup.sh index 0160913a8..cad9175ad 100755 --- a/tools/gate/00_setup.sh +++ b/tools/gate/00_setup.sh @@ -38,7 +38,7 @@ sudo apt-add-repository --yes --update ppa:ansible/ansible sudo apt-get -y update sudo apt-get -y --no-install-recommends install docker.io ansible make -echo "primary ansible_host=localhost" > "$ANSIBLE_HOSTS" +echo "primary ansible_host=localhost ansible_connection=local" > "$ANSIBLE_HOSTS" printf "[defaults]\nroles_path = %s/roles:%s/roles\n" "$AIRSHIPCTL_WS" "$OSH_INFRA_DIR" > "$ANSIBLE_CFG" rm -rf "$OSH_INFRA_DIR" git clone https://review.opendev.org/openstack/openstack-helm-infra.git "$OSH_INFRA_DIR"