From 34c8e161b71f0e33c7014cbfefc182f099776b38 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Thu, 16 Apr 2020 08:06:45 -0500 Subject: [PATCH] Set ansible_host explicitly Pass the ansible_host variable explicitly to mirror-workspace-git-repos because for some reason it's confused and getting localhost. Change-Id: I8a30b98a6eef168d11d4d580de359546ee1da252 --- playbooks/zuul/run-production-playbook.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/playbooks/zuul/run-production-playbook.yaml b/playbooks/zuul/run-production-playbook.yaml index 11b5fd5e5e..3ff8346ba5 100644 --- a/playbooks/zuul/run-production-playbook.yaml +++ b/playbooks/zuul/run-production-playbook.yaml @@ -5,6 +5,10 @@ name: bridge.openstack.org ansible_python_interpreter: python3 ansible_user: zuul + # Without setting ansible_host directly, mirror-workspace-git-repos + # gets sad because if delegate_to localhost and with add_host that + # ends up with ansible_host being localhost. + ansible_host: bridge.openstack.org ansible_port: 22 - hosts: localhost