mirror of
https://github.com/trailofbits/algo.git
synced 2025-06-07 15:43:54 +02:00
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:
parent
399d47233a
commit
30446d0363
2 changed files with 10 additions and 0 deletions
|
@ -6,4 +6,5 @@
|
||||||
when:
|
when:
|
||||||
- cloud_providers.scaleway.image == item.name
|
- cloud_providers.scaleway.image == item.name
|
||||||
- cloud_providers.scaleway.arch == item.arch
|
- cloud_providers.scaleway.arch == item.arch
|
||||||
|
- server_disk_size == item.root_volume.size
|
||||||
with_items: "{{ outer_item['json']['images'] }}"
|
with_items: "{{ outer_item['json']['images'] }}"
|
||||||
|
|
|
@ -2,6 +2,15 @@
|
||||||
- name: Include prompts
|
- name: Include prompts
|
||||||
import_tasks: prompts.yml
|
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
|
- name: Check if server exists
|
||||||
uri:
|
uri:
|
||||||
url: "https://cp-{{ algo_region }}.scaleway.com/servers"
|
url: "https://cp-{{ algo_region }}.scaleway.com/servers"
|
||||||
|
|
Loading…
Add table
Reference in a new issue