---
- hosts: localhost
  pre_tasks:
    - include: roles/common/pre_tasks/pre_tasks.yml
  roles:
    # Provision DNS
    - role: openstack-create
      type: "dns"
      key_name: "{{ openstack_key_name }}"
      image_name: "{{ openshift_openstack_image_name }}"
      flavor_name: "m1.small"
      security_groups: "dns,default"
      register_host_group: "dns,openshift"
      node_count: "1"

---
- hosts: localhost
  pre_tasks:
    - include: roles/common/pre_tasks/pre_tasks.yml
  roles:
    # Provision DNS
    - role: openstack-create
      type: "dns"
      key_name: "{{ openstack_key_name }}"
      image_name: "{{ openshift_openstack_image_name }}"
      flavor_name: "m1.small"
      security_groups: "{{ security_groups_dns  }}"
      register_host_group: "dns,openshift"
      node_count: "1"

Refactor OpenStack security group creation
Refactor OpenStack security group creation

* Adds new openstack-security-groups role
* Addresses Issue #211 and adds all instances to default group
* Defines default security group variable with all groups/rules
* Sets security group variables per type (master,node,nfs,dns)
* Supports specifying no security group for a type (e.g. nfs)
* Uses new Ansible 2.x modules
