From 676c8681110c1df6f5d3e83283d1667cf2c60537 Mon Sep 17 00:00:00 2001 From: Logan V Date: Sat, 17 Dec 2016 19:24:24 -0600 Subject: [PATCH] Target specific host groups instead of 'all' The playbook targets 'all', which is a dynamically generated ansible group that contains all hosts. This potentially targets hosts that are not managed by OSA but exist in the same inventory namespace. This now targets the OSA hosts and containers var that contains the group names this should target. Change-Id: I3bb6ad0bc81dbf8522258cce262023335eec547e --- playbooks/unbound-install.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/playbooks/unbound-install.yml b/playbooks/unbound-install.yml index d6d8c92415..7ead0d0ec1 100644 --- a/playbooks/unbound-install.yml +++ b/playbooks/unbound-install.yml @@ -33,7 +33,8 @@ - name: Install unbound DNS resolver client configurations hosts: - "!unbound_all" - - all + - "{{ openstack_host_group|default('hosts') }}" + - "{{ container_group|default('all_containers') }}" user: root pre_tasks: #gather a list of physical_hosts containing unbound containers