Nbering Terraform Inventory Versions Save

An Ansible dynamic inventory script to pair with nbering/terraform-provider-ansible.

v2.2.0

5 years ago

Added

  • Respect variable_priority, added in providers releases 0.0.6/1.0.2

Changed

  • List values in output are now sorted for consistency, and to make regression testing easier
  • With state files where 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 behaviour

v2.1.0

5 years ago

Added

  • Support for ansible_host_var resource type
  • Support for ansible_group_var resource type

Fixed

  • Corrected a minor issue where ansible_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)

v2.0.0

5 years ago

Added

  • Support for Terraform 0.12's new state file structure
  • Simple regression testing with Bash scripts

Changed

  • Removed version-specific python shebang, as terraform.py seems to work fine with Python 2.7 and 3.x

Removed

  • terraform state pull no longer uses -input=false as this argument is not recognized by Terraform 0.12

v1.1.0

5 years ago

Added

  • Support for Terraform workspaces via ANSIBLE_TF_WS_NAME environment variable. Thanks [@dnitsch]!

v1.0.1

6 years ago

Added

v1.0.0

6 years ago

Added

  • Added ANSIBLE_TF_DIR environment variable to set Terraform configuration directory.

Changed

  • Ported the script to Python to be more compatible with the Ansible ecosystem.
  • Changed TERRAFORM_PATH environment variable to ANSIBLE_TF_PATH.

Deprecated

  • The earlier NodeJS implementation will not be supported going forward.