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
This commit is contained in:
Logan V 2016-12-17 19:24:24 -06:00
parent eff0c52dc2
commit 676c868111

View File

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