fix(ansibleserver): force sleep 15s before running playbook

This commit is contained in:
Zexi Li
2022-09-28 17:23:29 +08:00
parent 73eea36e0a
commit e9f892875d
@@ -149,6 +149,9 @@ func (apb *SAnsiblePlaybookV2) runPlaybook(ctx context.Context, userCred mcclien
return fmt.Errorf("playbook is already running")
}
// hack: force Sleep 15s to wait some host ssh service started
time.Sleep(15 * time.Second)
var (
privateKey string
err error