Update prompts.yml

- Make the regions list more readable
- Assign us-east as the default region
This commit is contained in:
Jack Ivanov 2019-10-02 10:44:39 +02:00 committed by Jack Ivanov
parent 000b044f33
commit 56f37d6348

View file

@ -25,13 +25,16 @@
- name: Set default region
set_fact:
default_region: 1
default_region: >-
{% for r in linode_regions %}
{%- if r['id'] == "us-east" %}{{ loop.index }}{% endif %}
{%- endfor %}
- pause:
prompt: |
What region should the server be located in?
{% for r in linode_regions %}
{{ loop.index }}. {{ r['country'] }}
{{ loop.index }}. {{ r['id'] }}
{% endfor %}
Enter the number of your desired region