fix(ci): allow deleting migrated machine-specific roles in ansible-target.sh
ansible-core-mon / deploy (push) Successful in 26s
ansible-core-net / deploy (push) Successful in 51s
ansible-core-secrets / deploy (push) Successful in 16s
ansible-ger-nod-02 / deploy (push) Successful in 1m19s
ansible-opnsense / deploy (push) Successful in 9s
ansible-rus-central / deploy (push) Successful in 55s

This commit is contained in:
karpenok committed 2026-11-15 22:34:26 +07:00
1 parent 2fc6e39323
commit 07e3366578
1 file changed
+2
+2
View File
@@ -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