Skip to content

Commit

Permalink
Minimally update syntax for Terraform 0.12 (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsf9k authored and aknysh committed Jun 10, 2019
1 parent 221d166 commit 7f9e238
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ resource "null_resource" "provisioner" {

depends_on = ["data.archive_file.default"]

triggers {
triggers = {
signature = "${data.archive_file.default.output_md5}"
command = "ansible-playbook ${var.dry_run ? "--check --diff" : ""} ${join(" ", compact(var.arguments))} ${length(compact(var.envs)) > 0 ? "-e" : ""} ${join(" -e ", compact(var.envs))} ${var.playbook}"
}
Expand All @@ -28,7 +28,7 @@ resource "null_resource" "provisioner" {
}

resource "null_resource" "cleanup" {
triggers {
triggers = {
default = "${random_id.default.hex}"
}

Expand Down

0 comments on commit 7f9e238

Please sign in to comment.