Closed sjwl closed 5 years ago
We're getting a similar error, but we're passing the private key from a tls_private_key
resource. This only happens when we use the local Ansible provisioner.
Any chance the two are related?
fatal: [IP redacted]: UNREACHABLE! => {"changed": false, "msg": "argument must be an int, or have a fileno() method", "unreachable": true}
Edit: I shouldn't hijack your issue, so I made one in case they're unrelated; #98.
For some reason when a terraform variable storing the ssh key is passed in via an environment variable, there are some extra bits at the end of the key by the time it reaches
terraform-provisioner-ansible
.Steps to reproduce
export TF_VAR_ssh_private_key="$(cat ~/.ssh/id_rsa)"
terraform apply
Expected behavior
Ansible provisioner executes without error
Actual behavior
Configuration
Terraform version:
v0.11.10