copr-be: terminate spot instances on shutdown
Per the following error: fatal: [127.0.0.1]: FAILED! => {"changed": false, "msg": "instance_initiated_shutdown_behavior=stop is not supported for spot instances."}
This commit is contained in:
parent
30b8e21945
commit
ee0a88df33
1 changed files with 1 additions and 0 deletions
|
@ -26,6 +26,7 @@
|
||||||
aws_secret_key: "{{ aws_secret_key }}"
|
aws_secret_key: "{{ aws_secret_key }}"
|
||||||
volumes: "{% if instance_volumes is defined %}{{ instance_volumes }}{% else %}[]{% endif %}"
|
volumes: "{% if instance_volumes is defined %}{{ instance_volumes }}{% else %}[]{% endif %}"
|
||||||
spot_price: "{{ spot_price }}"
|
spot_price: "{{ spot_price }}"
|
||||||
|
instance_initiated_shutdown_behavior: terminate
|
||||||
register: ec2
|
register: ec2
|
||||||
|
|
||||||
- name: Add new instance to host group
|
- name: Add new instance to host group
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue