我想使用Ansible安装巧克力到一个Windows 10 VM。我用Centos8当主人。我设法复制文件,从主回购中安装.exe文件,但是当我使用以下剧本时,我得到了一个错误:
---
- name: "Chocolatey"
hosts: win
tasks:
- name: Install chocolatey
win_chocolatey:
name:
- chocolatey
- chocolatey-core.extension
state: present误差
TASK [Install chocolatey] *******************************************************************
fatal: [myip.adress]: FAILED! => {"changed": false, "msg": "Failed to download Chocolatey
script from 'https://chocolatey.org/install.ps1'; Exception calling \"DownloadString\" with
\"1\" argument(s): \"The underlying connection was closed: Could not establish trust relation
ship for the SSL/TLS secure channel.\"", "rc": 0}而且,每次我从windows 10 VM连接到任何internet页面时,都是这样的:

我该怎么办?
发布于 2022-06-07 10:27:49
请注意,此错误似乎与存储库中的代理URL有关,请继续尝试下面的Ansible文档中的以下一个:
- name: Ensure Chocolatey itself is installed and use internal repo as source
win_chocolatey:
name: chocolatey
source: http://someserver/chocolateyhttps://stackoverflow.com/questions/72319510
复制相似问题