diff --git a/ansible/roles/core-net/remnawave/files/sync_remnawave.py b/ansible/roles/core-net/remnawave/files/sync_remnawave.py index b6b0c1d..81158f5 100644 --- a/ansible/roles/core-net/remnawave/files/sync_remnawave.py +++ b/ansible/roles/core-net/remnawave/files/sync_remnawave.py @@ -276,6 +276,8 @@ def ensure_profile_and_inbound( raw_tpl = profile_templates.get(tpl_key) if not raw_tpl: raise RuntimeError(f"Не найден шаблон профиля {tpl_key}") + if isinstance(raw_tpl, dict): + raw_tpl = json.dumps(raw_tpl) priv, _ = generate_x25519(api) short_id = secrets.token_hex(8)