terraform-inventory icon indicating copy to clipboard operation
terraform-inventory copied to clipboard

set ansible_python_interpreter

Open brunomacf opened this issue 8 years ago • 1 comments

I'm creating CoreOS cluster through Terraform and to provision this machines with ansible i need to set ansible_python_interpreter in the inventory file. Is there a way to set this variable with terraform-inventory?

brunomacf avatar Mar 30 '16 11:03 brunomacf

Hey, I did this by creating the following outputs in my terraform master:

output "ansible_ssh_user"           { value = "core" }
output "ansible_python_interpreter" { value = "PATH=/home/core/bin:$PATH python" }

looks like you can override any of the ansible_* settings this way

alexrudd avatar May 18 '16 13:05 alexrudd