Skip to content
Snippets Groups Projects
Commit 495235e1 authored by matt01671's avatar matt01671
Browse files

dixed groups

parent 22c27f31
Branches
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@
- role: openstack-security-group
- role: openstack-instance
- hosts: COMP90024
- hosts: instances
vars_files:
- host_vars/react.yaml
gather_facts: true
......
......@@ -31,12 +31,14 @@ instances:
volumes: ['harvester-volume']
meta:
group: harvesters
# - name: web
# volumes: ['web-volume']
# group: web
# - name: couchDB
# volumes: ['db-volume']
# group: dbs
- name: web
volumes: ['web-volume']
meta:
group: web
- name: couchDB
volumes: ['db-volume']
meta:
group: dbs
instance_image: 45225edb-66d8-4fd0-bf41-132a31a18166
instance_key_name: test-moh
......
......@@ -33,6 +33,7 @@
# Add hosts to Ansible in-memory inventory
- name: Add host
add_host:
hostname: foo
name: '{{ item.openstack.public_v4 }}'
groups: "{{ item['item']['meta']['group'] }}"
loop: '{{ os_instance.results }}'
......
- hosts: COMP90024
- hosts: harvesters
vars_files:
- host_vars/react.yaml
gather_facts: true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment