0823254c3b
git-subtree-dir: tests/files git-subtree-mainline: 4f3f881c9be0b590e6e28fda295257e8d15d5f02 git-subtree-split: ce7204fa17560f6a76c7592bf5f23d29f22042d6
34 lines
798 B
YAML
34 lines
798 B
YAML
---
|
|
- 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:
|
|
Name: test_runner
|
|
count_tag:
|
|
Name: test_runner
|
|
exact_count: "{{ total_no_instances }}"
|
|
# volumes:
|
|
# - device_name: /dev/xvda
|
|
# volume_size: "{{ volume_size_gb }}"
|