From a5bf5ac889371fbe1d4a4df5bd87a7ba91336935 Mon Sep 17 00:00:00 2001 From: GnomeZworc Date: Fri, 1 Jul 2022 19:31:17 +0200 Subject: [PATCH] add condition to execut playbook Signed-off-by: GnomeZworc --- main.tf | 6 ++++++ var.tf | 2 ++ 2 files changed, 8 insertions(+) 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 = <