nbering / terraform-provider-ansible

"Logical" provider for integrating with an Ansible Dynamic Inventory script.
https://nbering.github.io/terraform-provider-ansible/
Mozilla Public License 2.0
329 stars 64 forks source link

Feature: Separate host and group variables resources. #4

Closed nbering closed 5 years ago

nbering commented 6 years ago

Would solve problems with:

# This is not a resource that exists now, just an example of what could be added.
resource "ansible_host_var" "example" {
    inventory_hostname = "db.example.com"
    key                = "db_password"
    value              = "testing1234"
}

Would require changes to the dynamic inventory script as well, because it would have to understand the resource type, and somehow merge the ansible_host.vars and ansible_host_var values.