Preemptibile instances for GCE

This commit is contained in:
Antoine Legrand 2017-03-23 10:12:00 +01:00
parent 04746fc4d8
commit 7dfc87397b

View file

@ -3,7 +3,7 @@
become: false become: false
gather_facts: no gather_facts: no
vars: vars:
cloud_machine_type: g1-small cloud_machine_type: n1-standard-2
mode: default mode: default
tasks: tasks:
@ -24,7 +24,7 @@
instance_names: "{{instance_names}}" instance_names: "{{instance_names}}"
machine_type: "{{ cloud_machine_type }}" machine_type: "{{ cloud_machine_type }}"
image: "{{ cloud_image }}" image: "{{ cloud_image }}"
preemptible: no preemptible: yes
service_account_email: "{{ gce_service_account_email }}" service_account_email: "{{ gce_service_account_email }}"
pem_file: "{{ gce_pem_file | default(omit)}}" pem_file: "{{ gce_pem_file | default(omit)}}"
credentials_file: "{{gce_credentials_file | default(omit)}}" credentials_file: "{{gce_credentials_file | default(omit)}}"