Set disk size depending on server plan (#1159)

Scaleway`s START1-XS does not start with a disk size of 50GB.
This commit is contained in:
datew0 2018-11-02 14:38:54 +03:00 committed by Dan Guido
parent 399d47233a
commit 30446d0363
2 changed files with 10 additions and 0 deletions

View file

@ -6,4 +6,5 @@
when:
- cloud_providers.scaleway.image == item.name
- cloud_providers.scaleway.arch == item.arch
- server_disk_size == item.root_volume.size
with_items: "{{ outer_item['json']['images'] }}"

View file

@ -2,6 +2,15 @@
- name: Include prompts
import_tasks: prompts.yml
- name: Set disk size
set_fact:
server_disk_size: 50000000000
- name: Check server size
set_fact:
server_disk_size: 25000000000
when: cloud_providers.scaleway.size == "START1-XS"
- name: Check if server exists
uri:
url: "https://cp-{{ algo_region }}.scaleway.com/servers"