From 07e3366578aa53d0ddb1488fc723aa6aba816592 Mon Sep 17 00:00:00 2001 From: karpenok Date: Sun, 15 Nov 2026 22:34:26 +0700 Subject: [PATCH] fix(ci): allow deleting migrated machine-specific roles in ansible-target.sh --- ansible/ci/ansible-target.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ansible/ci/ansible-target.sh b/ansible/ci/ansible-target.sh index 7174fef..ebeab82 100755 --- a/ansible/ci/ansible-target.sh +++ b/ansible/ci/ansible-target.sh @@ -91,6 +91,8 @@ if [ "$full" -eq 0 ] && [ -n "$changed" ]; then product=${product%%/*} if grep -q "role: ${machine}/${product}" "$playbook" && grep -q "tags: \[${product}\]" "$playbook"; then add_tag "$product" + elif [ ! -e "$file" ] && [ ! -d "ansible/roles/${machine}/${product}" ]; then + : else reject_unknown "$file" fi