From 1fa136cba961fb18ec820ee85655b99fc736b0fd Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Wed, 22 Aug 2018 13:55:46 -0700 Subject: [PATCH] Allow bridge playbook to run under zuul Normally the bridge playbook runs as root on bridge. In order to allow zuul to bootstrap a bridge-like node in its tests while running as the zuul user, add become: true to the playbook. This will have no effect on bridge itself, but will cause the playbook to behave in the same manner in tests. Also add the "users" role to bridge. This is in the base playbook and is therefore eventually run on bridge. However it needs to also be in the bridge playbook in order to bootstrap bridge correctly, as the install-ansible role references groups which are created in the users role. Change-Id: If311914e9e632d8be855fff0a62528dd191bf1d0 --- playbooks/bridge.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/playbooks/bridge.yaml b/playbooks/bridge.yaml index 35623d3e34..594c2d9b94 100644 --- a/playbooks/bridge.yaml +++ b/playbooks/bridge.yaml @@ -1,5 +1,7 @@ - hosts: bridge.openstack.org + become: true roles: + - users - pip3 - install-ansible - root-keys