2015-01-25 21:52:38 +00:00
|
|
|
---
|
|
|
|
- name: create default security group
|
|
|
|
ec2_group:
|
|
|
|
name: "{{ security_group }}"
|
|
|
|
region: "{{ region }}"
|
|
|
|
description: "{{ project_description }}"
|
|
|
|
rules:
|
|
|
|
# ssh
|
|
|
|
- proto: tcp
|
|
|
|
from_port: 22
|
|
|
|
to_port: 22
|
|
|
|
cidr_ip: "{{ ip_access_range }}"
|
|
|
|
rules_egress:
|
|
|
|
- proto: all
|
|
|
|
cidr_ip: "{{ ip_access_range }}"
|
|
|
|
|
|
|
|
|
|
|
|
- name: start ec2 instances
|
|
|
|
ec2:
|
|
|
|
group: "{{ security_group }}"
|
|
|
|
instance_type: "{{ instance_type }}"
|
|
|
|
image: "{{ image }}"
|
|
|
|
wait: true
|
|
|
|
region: "{{ region }}"
|
|
|
|
key_name: "{{ keypair }}"
|
|
|
|
instance_tags:
|
2015-03-17 11:02:49 +00:00
|
|
|
Name: "{{ item }}"
|
|
|
|
Role: client-tests
|
2015-01-25 21:52:38 +00:00
|
|
|
count_tag:
|
2015-03-17 11:02:49 +00:00
|
|
|
Name: "{{ item }}"
|
|
|
|
exact_count: 1
|
|
|
|
with_sequence: start=0 end={{ total_no_instances - 1 }} format=testrunner-%1u
|