From 8e54f82e1248a02014fdce2d8a825dd3238bc944 Mon Sep 17 00:00:00 2001 From: dvirlabs Date: Wed, 22 Apr 2026 22:46:18 +0300 Subject: [PATCH] Fix update-gitops-status --- update-gitops-status.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/update-gitops-status.sh b/update-gitops-status.sh index ff6433d..58a8d8c 100644 --- a/update-gitops-status.sh +++ b/update-gitops-status.sh @@ -68,7 +68,10 @@ trap "rm -f $PLAYBOOK_LOG" EXIT # Run playbook (no -v flag to avoid file descriptor exhaustion in containers) # Exit code: 0 = synced, non-zero = drift detected (expected) +# Disable callbacks and reduce file watchers to prevent inotify exhaustion set +e +ANSIBLE_CALLBACKS_ENABLED="" \ +ANSIBLE_STDOUT_CALLBACK=minimal \ ansible-playbook \ -i "$INVENTORY_FILE" \ "$PLAYBOOK" \