An Ansible dynamic inventory script to pair with nbering/terraform-provider-ansible.
variable_priority
is not set, the default values of 50 (for ansible_host
and ansible_group
) and 60 (for ansible_host_var
and ansible_group_var
) will be inferred, changing variable merging behaviouransible_host_var
resource typeansible_group_var
resource typeansible_host
or ansible_host_var
resources with the same inventory_hostname
would result in multiple copies of the hostname in any groups they shared in common (including the "all" group)terraform.py
seems to work fine with Python 2.7 and 3.xterraform state pull
no longer uses -input=false
as this argument is not recognized by Terraform 0.12ANSIBLE_TF_DIR
environment variable to set Terraform configuration directory.TERRAFORM_PATH
environment variable to ANSIBLE_TF_PATH
.