Closed joshschmitter closed 5 years ago
Hi @joshschmitter, thank you for the report. I see the version used is 2.0.1
. Could you please try with radekg/terraform-ansible:2.1.0
?
Thee setting has been added in 2.1.0: https://github.com/radekg/terraform-provisioner-ansible/releases/tag/v2.1.0.
Yes, that seems to have solved it. Thanks!
Thank you for letting me know!
Steps to reproduce
Expected behavior
terraform deploys vm (and supporting resources) and runs ansible provisioner on vm. ...
Actual behavior
terraform immediately complains about ansible_ssh_settings.insecure_no_strict_host_key_checking
Error: azurerm_virtual_machine.ubuntu: ansible_ssh_settings.0: invalid or unknown key: insecure_no_strict_host_key_checking
...Configuration
Terraform version: 0.11.13 (also reproduced with 0.11.11)
terraform-provisioner-ansible version/SHA: 2.0.1 (running from docker image hashicorp/terraform:0.11.13)
Terraform file / provisioner configuration:
Terraform run log:
Note: I created my own docker image, which is identical to yours except it also installs the azure cli (for cli authentication to azure). I feel confident this is unrelated to the issue. Just wanted to point it out so you don't have to ask about it.
Dockerfile: