ansible / terraform-provider-ansible

community terraform provider for ansible
https://registry.terraform.io/providers/ansible/ansible/latest
GNU General Public License v3.0
201 stars 45 forks source link

Clarify usage around non-string variables in docs #129

Open sikha-root opened 4 months ago

sikha-root commented 4 months ago

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.