fix: ansible 密码支持 {{ }} {% %} (#12354)

Co-authored-by: feng <1304903146@qq.com>
This commit is contained in:
fit2bot
2023-12-18 17:31:35 +08:00
committed by GitHub
parent 006faac326
commit 1f2db65dba
5 changed files with 25 additions and 23 deletions

View File

@@ -62,7 +62,7 @@ class VerifyAccountManager(AccountBasePlaybookManager):
'name': account.name,
'username': account.username,
'secret_type': account.secret_type,
'secret': secret,
'secret': account.escape_jinja2_syntax(secret),
'private_key_path': private_key_path,
'become': account.get_ansible_become_auth(),
}