我试图在Azure上创建Windows vm,然后将其自动连接到ansible,我尝试了几种连接方法,但是在尝试执行一些命令时仍然超时 请在此处检查我的代码并等待您的支持
provisioner "remote-exec" {
inline = [
"PowerShell.exe C:\\terraform\\winrm.ps1",
]
connection {
type = "winrm"
port = 5985
https = false
timeout = "2m"
user = "${var.username}"
password = "${var.password}"
host = "windomainlocal1.westus.cloudapp.azure.com"
insecure = true
}
}