From 8841cf379769dc710a9a00c8f82a4223ccda5ed0 Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Thu, 15 Mar 2018 19:23:05 +0000 Subject: [PATCH] repo-use.yml: Scope host groups properly When using multi-region swift or when including more thank just OpenStack-related hosts in the inventory, it's important to scope where these tasks are run properly to prevent attempts at doing things on the wrong hosts. The sope of the play now runs against the same scope for hosts as the openstack-hosts playbook. This is more consistent and will help prevent unwanted side- effects. Change-Id: Ia755845ac2b04f080db45905263059b92072d194 --- playbooks/repo-use.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/repo-use.yml b/playbooks/repo-use.yml index 6e3ea5d9d4..84de739b70 100644 --- a/playbooks/repo-use.yml +++ b/playbooks/repo-use.yml @@ -18,7 +18,7 @@ # can run once and for all directly after the # lxc-container-create playbook. - name: Configure all nodes to use the repo container for python/apt packages - hosts: all:!repo_all + hosts: "{{ openstack_host_group | default('hosts') }}:all_containers:!repo_all" pre_tasks: - include: common-tasks/package-cache-proxy.yml roles: