refactor(remnawave): синхронизировать панель из desired.yml и шаблонов команд
ansible-deploy / plan (push) Successful in 1s
ansible-lint / lint (push) Successful in 2s
ansible-deploy / deploy (core-mon, ) (push) Successful in 37s
ansible-deploy / deploy (core-net, ) (push) Failing after 52s
ansible-deploy / deploy (core-secrets, ) (push) Successful in 24s
ansible-deploy / deploy (ger-nod-02, ) (push) Successful in 1m20s
ansible-deploy / deploy (opnsense, ) (push) Successful in 13s
ansible-deploy / deploy (rus-central, ) (push) Successful in 1m6s

Повторный прогон без смены compose не тянет образы, ноды и сквады добавляются данными, а не новым плейбуком на каждый VPS.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
karpenokandCursor committed 2026-11-18 17:18:49 +07:00
1 parent 89f928c64a
commit 99ee815213
22 files changed
+1151 -672

No files matched your search

+14 -1
View File
@@ -18,7 +18,20 @@ case "$machine" in
;;
esac
if [ "$machine" = "site" ] || [ "$machine" = "host" ] || [ ! -f "$root/ansible/playbooks/${machine}.yml" ]; then
is_remnanode() {
awk -v m="$1" '
$0 ~ "^ remnanodes:" {s=1; next}
s && $0 ~ "^ [^ ]" {s=0}
s && $0 ~ "^ " m ":$" {f=1}
END {exit !f}
' "$root/ansible/inventories/prod/hosts.yml"
}
if [ "$machine" = "site" ] || [ "$machine" = "host" ]; then
echo "Неизвестная машина: $machine" >&2
exit 2
fi
if [ ! -f "$root/ansible/playbooks/${machine}.yml" ] && ! is_remnanode "$machine"; then
echo "Неизвестная машина: $machine" >&2
exit 2
fi