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
This commit is contained in:
Jesse Pretorius 2018-03-15 19:23:05 +00:00
parent 1d731cdd89
commit 8841cf3797

View File

@ -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: