radekg / terraform-provisioner-ansible

Ansible with Terraform 0.14.x
Apache License 2.0
572 stars 100 forks source link

error on terraform v0.12.14 #144

Closed terryzwt closed 5 years ago

terryzwt commented 5 years ago

Terraform version: 0.12.14

terraform-provisioner-ansible version/SHA:

Terraform file / provisioner configuration:

https://github.com/terryzwt/alicloud-ikev2-server/blob/master/main.tf#L95

Terraform run log:


Error: Unsupported argument

  on main.tf line 94, in resource "alicloud_instance" "instance":
  94:       playbook = {

An argument named "playbook" is not expected here. Did you mean to define a
block of type "playbook"?
terryzwt commented 5 years ago

When I degrade terraform to v0.11.14, there is no error.

Thanks for checking.

radekg commented 5 years ago

Hi @terryzwt. For Terraform 0.12.x, please try:

playbook {

Without =. Please have a look at the relevant readme: https://github.com/radekg/terraform-provisioner-ansible#configuration.

terryzwt commented 5 years ago

Hi @radekg ,thanks for your quick help . it works now!