From a77d2fedfb715401a0039ab95e1225fb84d639b7 Mon Sep 17 00:00:00 2001 From: Haitao Pan Date: Thu, 11 Jun 2026 18:32:55 +0800 Subject: [PATCH] refactor(litellm): use ansible vault for database password --- host_vars/jp-xhttp-contabo.svc.plus/litellm.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/host_vars/jp-xhttp-contabo.svc.plus/litellm.yml b/host_vars/jp-xhttp-contabo.svc.plus/litellm.yml index d7aafee..d4b9f9d 100644 --- a/host_vars/jp-xhttp-contabo.svc.plus/litellm.yml +++ b/host_vars/jp-xhttp-contabo.svc.plus/litellm.yml @@ -8,4 +8,10 @@ litellm_database_port: "15432" litellm_database_sslmode: "disable" litellm_database_name: "litellm" litellm_database_user: "litellm" -litellm_database_password: "{{ lookup('ansible.builtin.env', 'LITELLM_DATABASE_PASSWORD') | default('LiteLLM_DB_Secur3_2026!', true) }}" \ No newline at end of file +litellm_database_password: !vault | + $ANSIBLE_VAULT;1.1;AES256 + 33303762616661623962386664653533666362393435343830303061613364666238313933626330 + 6231303463663732313732376238633033386463383134630a313738393762333263653363376266 + 37323938386331383762363565613361623638353834363735363030363037626666663431613239 + 3939323036313435360a313833316131663231326162393364616262323763333133336335323837 + 31336464646334653035646633363164633363353835316466626337633238396130 \ No newline at end of file