diff --git a/variables.tf b/variables.tf index 43e8ade..013aff3 100644 --- a/variables.tf +++ b/variables.tf @@ -174,10 +174,10 @@ variable "ansible_extra_options" { } locals { - private_key_file = "${var.private_key_file == "" ? "${path.cwd}/data/id_rsa" : "${var.private_key_file}" }" - public_key_file = "${var.public_key_file == "" ? "${path.cwd}/data/id_rsa.pub" : "${var.public_key_file}" }" - private_key = "${var.private_key == "" ? file(coalesce(local.private_key_file, "/dev/null")) : "${var.private_key}" }" - public_key = "${var.public_key == "" ? file(coalesce(local.public_key_file, "/dev/null")) : "${var.public_key}" }" + private_key_file = var.private_key_file == "" ? "${path.cwd}/data/id_rsa" : var.private_key_file + public_key_file = var.public_key_file == "" ? "${path.cwd}/data/id_rsa.pub" : var.public_key_file + private_key = var.private_key == "" ? file(coalesce(local.private_key_file, "/dev/null")) : var.private_key + public_key = var.public_key == "" ? file(coalesce(local.public_key_file, "/dev/null")) : var.public_key }