All:

I am using the terraform module and have a terraform plan that contains a 
list type variable. (Ansible 2.7.2)

It may be my lack of deep knowledge of YAML, but every attempt I've tried, 
results in a validation error.

My suspicion is that terraform expects the list to be passed in a certain 
format. This is based on the terraform docs 
<https://www.terraform.io/docs/configuration/variables.html> which show 
that one can pass a list in as environment variable with the format: 

$ TF_VAR_somelist='["ami-abc123", "ami-bcd234"]' terraform plan


But I have been utterly unable to figure out how to pass this format from 
Ansible (i.e. yaml) to Terraform.

Does anyone know how I can get this to work without resorting to an 
environment variable.

Thx,

-steve

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/3944fde6-c611-41ff-8f95-aa21ecf461c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to