The documentation for the ansible_host module suggested that lists/maps were supported as long as they were JSONified, but I see that is not the case (especially now that I saw #128).
This makes it a bit more clear how to use lists/maps from Terraform in Ansible playbook/role variables.
As an aside, jsonencode(some_list) silently "works" when Ansible expects a list but as a list of characters (from the string result), which ended up in some funny results.
The documentation for the
ansible_host
module suggested that lists/maps were supported as long as they were JSONified, but I see that is not the case (especially now that I saw #128). This makes it a bit more clear how to use lists/maps from Terraform in Ansible playbook/role variables.As an aside,
jsonencode(some_list)
silently "works" when Ansible expects a list but as a list of characters (from the string result), which ended up in some funny results.