mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/yunionio/cloudpods.git
synced 2026-09-20 08:03:53 +08:00
fix(ansible): validate playbook inventory, connection, and file paths (#25605)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com> Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -155,7 +155,9 @@ func (proxyendpoint *SProxyEndpoint) remoteConfigure(ctx context.Context, userCr
|
||||
},
|
||||
}
|
||||
|
||||
cliSess := auth.GetSession(ctx, userCred, "")
|
||||
// the playbook content here is server-generated; use the admin session
|
||||
// since ansible playbook creation requires system admin privilege
|
||||
cliSess := auth.GetAdminSession(ctx, "")
|
||||
pbId := ""
|
||||
pbName := "pe-remote-configure-" + proxyendpoint.Name
|
||||
_, err := ansible_modules.AnsiblePlaybooks.UpdateOrCreatePbModel(
|
||||
|
||||
Reference in New Issue
Block a user