Ricardo Carrillo Cruz fc93fc4464 Rename instances_config to infra_config and node_type for infra_type
Makes more sense to me that naming
2015-03-27 11:16:43 +01:00

20 lines
484 B
YAML

- name: Create OpenStack instances
os_server:
state: present
cloud: openstack
name: "{{ item.name }}"
region_name: region-b.geo-1
availability_zone: az2
image: "{{ item.image }}"
key_name: workstation
timeout: 200
flavor: "{{ item.flavor }}"
nics:
- net-name: "{{ item.net_name }}"
security_groups: default
auto_floating_ip: yes
meta:
group: infra
infra_type: "{{ item.infra_type }}"
with_items: infra_config