Azure / caf-terraform-landingzones-platform-starter

CAF Terraform landing zone - platform configuration starter kit
MIT License
83 stars 91 forks source link

Getting an ansible error when running this in a github codespace #21

Open ageisen2000 opened 1 year ago

ageisen2000 commented 1 year ago

Here is the output in my terminal after running '/tf/caf/landingzones/templates/platform/deploy_platform.sh'.

I'm using the 2203.1 release for the landingzones git module

TASK [Get default user's tenant guid] ******************************************************************************************************************************************************************
changed: [localhost]

TASK [Get default subscription id] *********************************************************************************************************************************************************************
changed: [localhost]

TASK [Get default subscription name] *******************************************************************************************************************************************************************
changed: [localhost]

TASK [set_fact] ****************************************************************************************************************************************************************************************
ok: [localhost]

TASK [set_fact] ****************************************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'list object' has no attribute 'items'\n\nThe error appears to be in '/tf/caf/landingzones/templates/ansible/walk-through.yaml': line 35, column 4, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n-  set_fact:\n   ^ here\n"}

image

ageisen2000 commented 1 year ago

Inputs are here: image

ageisen2000 commented 1 year ago

It seems like it's an issue with my inputs, are we not supposed to enter it like: [{'region1': 'centralus', 'region2': 'westus'}] ?

Does it need to be [{'region1': 'centralus'}, {'region2': 'westus'}] ?

gpaulmc commented 1 year ago

Don't enter with the [].

Correct entry should be:

{'region1': 'centralus', 'region2': 'westus'}