copr: fixup aws volume config

This commit is contained in:
Pavel Raiskup 2019-12-03 09:48:13 +01:00 committed by Pierre-Yves Chibon
parent 2ce23a8a31
commit 446db9e32c
3 changed files with 6 additions and 6 deletions

View file

@ -16,6 +16,11 @@
max_spawn_time: 1100
spawning_vm_user: "fedora"
arch: aarch64
instance_volumes:
- device_name: sdb
delete_on_termination: True
volume_type: gp2
volume_size: 100
tasks:
- include: "spinup_aws_task.yml"

View file

@ -16,11 +16,6 @@
max_spawn_time: 1100
spawning_vm_user: "fedora"
arch: x86_64
instance_volumes:
- device_name: sdb
delete_on_termination: True
volume_type: gp2
volume_size: 100
tasks:
- include: "spinup_aws_task.yml"

View file

@ -17,7 +17,7 @@
arch: "{{ arch }}"
aws_access_key: "{{ aws_access_key }}"
aws_secret_key: "{{ aws_secret_key }}"
volumes: "{{ instance_volumes or [] }}"
volumes: "{% if instance_volumes is defined %}{{ instance_volumes }}{% else %}[]{% endif %}"
register: ec2
- name: Add new instance to host group