mirror of
https://github.com/trailofbits/algo.git
synced 2025-04-11 11:47:08 +02:00
26 lines
943 B
YAML
26 lines
943 B
YAML
---
|
|
- set_fact:
|
|
secret: "{{ azure_secret | default(lookup('env','AZURE_SECRET'), true) }}"
|
|
tenant: "{{ azure_tenant | default(lookup('env','AZURE_TENANT'), true) }}"
|
|
client_id: "{{ azure_client_id | default(lookup('env','AZURE_CLIENT_ID'), true) }}"
|
|
subscription_id: "{{ azure_subscription_id | default(lookup('env','AZURE_SUBSCRIPTION_ID'), true) }}"
|
|
|
|
- block:
|
|
- name: Set the default region
|
|
set_fact:
|
|
default_region: >-
|
|
{% for r in azure_regions %}
|
|
{%- if r['name'] == "eastus" %}{{ loop.index }}{% endif %}
|
|
{%- endfor %}
|
|
|
|
- pause:
|
|
prompt: |
|
|
What region should the server be located in?
|
|
{% for r in azure_regions %}
|
|
{{ loop.index }}. {{ r['regionalDisplayName'] }}
|
|
{% endfor %}
|
|
|
|
Enter the number of your desired region
|
|
[{{ default_region }}]
|
|
register: _algo_region
|
|
when: region is undefined
|