-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to parse #21
Comments
For some reason, Ansible is trying to parse the script as an inventory file. That would seem to suggest that it wasn't able to execute it, despite the permissions setting you already tried. Try executing the script yourself, ie |
Hello, When: Tadaaaa:
It's works! I need to be in the same directory. So if I want to play a playbook, like: How I can do to use terraform.py with differents directories? Because I need to change inventory.
Thanks |
Perhaps it's trying to run it, and falls back to reading the file when it fails. I can't recall if that's how it behaved when I was developing it. I think what you want is to set the Terraform project path. There's an override for that as an environment variable. See the README for details. https://github.com/nbering/terraform-inventory#ansible_tf_dir |
Thansk, that is! |
Finally, I change string in terraform.py |
That'll work, assuming you don't need to update it. Personally, I use direnv to manage my project-specific environment variables. |
Hello,
Terraform 0.12.17
Ansible 2.9.6
Already do chmod +x
Part of my tfstate:
Where is my error?
The text was updated successfully, but these errors were encountered: