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 <andrew.walters@att.com>
This commit is contained in:
parent
7ce111b282
commit
2a91ed613c
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user