added missing environment variables

This commit is contained in:
milkmix 2019-06-24 13:02:43 +02:00
parent c53172cb96
commit c79c156a75
2 changed files with 7 additions and 8 deletions

View file

@ -42,7 +42,7 @@ zone:
{
"allocationstate": "Enabled",
"dhcpprovider": "VirtualRouter",
"id": "1128bd56-b4d9-4ac6-a7b9-c715b187ce11",
"id": "<id>",
"localstorageenabled": true,
"name": "ch-gva-2",
"networktype": "Basic",
@ -53,7 +53,7 @@ zone:
{
"allocationstate": "Enabled",
"dhcpprovider": "VirtualRouter",
"id": "91e5e9e4-c9ed-4b76-bee4-427004b3baf9",
"id": "<id>",
"localstorageenabled": true,
"name": "ch-dk-2",
"networktype": "Basic",
@ -64,7 +64,7 @@ zone:
{
"allocationstate": "Enabled",
"dhcpprovider": "VirtualRouter",
"id": "4da1b188-dcd6-4ff5-b7fd-bde984055548",
"id": "<id>",
"localstorageenabled": true,
"name": "at-vie-1",
"networktype": "Basic",
@ -75,7 +75,7 @@ zone:
{
"allocationstate": "Enabled",
"dhcpprovider": "VirtualRouter",
"id": "35eb7739-d19e-45f7-a581-4687c54d6d02",
"id": "<id>",
"localstorageenabled": true,
"name": "de-fra-1",
"networktype": "Basic",

View file

@ -17,13 +17,12 @@
[exoscale]
register: _cs_region
# - name: Parse zones from output
# set_fact:
# _cs_zones: "{{ _cloudstack_zones | from_json }}"
- name: Get zones on cloud
cloudstack_zones:
register: _cs_zones
environment:
CLOUDSTACK_CONFIG: "{{ _cs_config }}"
CLOUDSTACK_REGION: "{% if _cs_region.user_input | length <= 0 %}{{ 'exoscale' }}{% else %}{{ _cs_region.user_input }}{% endif %}"
- name: Extract zones from output
set_fact: