Skip to content

Commit

Permalink
adds parameter aws_ebs_volume_type for aws_manage role
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Kononykhin <[email protected]>
  • Loading branch information
andkononykhin committed Dec 11, 2018
1 parent 3d01361 commit a39380b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions pool_automation/roles/aws_manage/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ aws_ec2_type: t2.micro
aws_ec2_market_spot: true
aws_ec2_spot_max_price: null
aws_ebs_volume_size: 16
aws_ebs_volume_type: gp2

# Resource tags and names
aws_tag_project: "{{ aws_project_name }}"
Expand Down
3 changes: 2 additions & 1 deletion pool_automation/roles/aws_manage/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@
instance_type: "{{ aws_ec2_type }}"
instance_count: "{{ aws_instance_count }}"
market_spot: "{{ aws_ec2_market_spot }}"
spot_max_price: "{{ aws_ec2_spot_max_price }}"
spot_max_price: "{{ aws_ec2_spot_max_price|default(omit, True) }}"
ebs_volume_size: "{{ aws_ebs_volume_size|int|default(omit, True) }}"
ebs_volume_type: "{{ aws_ebs_volume_type|default(omit, True) }}"
register: aws_ec2hosts

- name: Post-Up
Expand Down

0 comments on commit a39380b

Please sign in to comment.