确认您在Windows上安装了Chrome浏览器。
手动打开Chrome浏览器,以便Chrome被正确安装并运行。
确保您的Ansible Playbook包含正确的路径来启动Chrome浏览器。 例如:
Invoke-Command -ComputerName REMOTEPC -ScriptBlock { Start-Process "chrome.exe" -WindowStyle Maximized }
$PSVersionTable.PSVersion
如果您的版本低于4.0,请使用以下命令更新:
Set-ExecutionPolicy RemoteSigned iex (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh') scoop install powershell
ansible --version
如果需要,请更新Ansible版本:
pip install --upgrade ansible