diff --git a/main.tf b/main.tf index bca776c..bdf4094 100644 --- a/main.tf +++ b/main.tf @@ -69,6 +69,8 @@ resource "xenorchestra_vm" "vm_deployed" { # Generate inventory file resource "local_file" "inventory" { + count = var.playbook != "" ? 1 : 0 + filename = "inventory" content = <