From 8a0d4af86893811de76b7bd3c7f4265d26447b74 Mon Sep 17 00:00:00 2001 From: Alex Frantz Date: Wed, 15 Oct 2025 23:41:33 -0400 Subject: [PATCH] only run deployment task once --- scripts/deploy_containers.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/deploy_containers.py b/scripts/deploy_containers.py index 59c4aff..13b694a 100644 --- a/scripts/deploy_containers.py +++ b/scripts/deploy_containers.py @@ -73,10 +73,13 @@ def main(): if "host_vars" not in file: # deploy the task, regardless of its status if "roles/" not in file: - task = deploy(tag=task_name) + if task_name not in deployed: + task = deploy(tag=task_name) else: task_name = file.split("/")[1] - task = deploy(tag=task_name) + + if task_name not in deployed: + task = deploy(tag=task_name) if not task: failed.append(task_name)