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
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:
1 parent
2fc6e39323
commit
07e3366578
1 file changed
+2
@@ -91,6 +91,8 @@ if [ "$full" -eq 0 ] && [ -n "$changed" ]; then
|
|||||||
product=${product%%/*}
|
product=${product%%/*}
|
||||||
if grep -q "role: ${machine}/${product}" "$playbook" && grep -q "tags: \[${product}\]" "$playbook"; then
|
if grep -q "role: ${machine}/${product}" "$playbook" && grep -q "tags: \[${product}\]" "$playbook"; then
|
||||||
add_tag "$product"
|
add_tag "$product"
|
||||||
|
elif [ ! -e "$file" ] && [ ! -d "ansible/roles/${machine}/${product}" ]; then
|
||||||
|
:
|
||||||
else
|
else
|
||||||
reject_unknown "$file"
|
reject_unknown "$file"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in new issue
Block a user