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:
Pavel Raiskup 2021-05-19 13:59:41 +02:00
parent 30b8e21945
commit ee0a88df33

View file

@ -26,6 +26,7 @@
aws_secret_key: "{{ aws_secret_key }}"
volumes: "{% if instance_volumes is defined %}{{ instance_volumes }}{% else %}[]{% endif %}"
spot_price: "{{ spot_price }}"
instance_initiated_shutdown_behavior: terminate
register: ec2
- name: Add new instance to host group