Ansible安装巧克力失败
我想使用Ansible将Chocolatey安装到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页面时像这样:
我该怎么办?
I want to use Ansible to install chocolatey into a Windows 10 VM. I use Centos8 as Master. I manage to copy files, install .exe files from master repo, but when I use the following playbook I got an error:
---
- name: "Chocolatey"
hosts: win
tasks:
- name: Install chocolatey
win_chocolatey:
name:
- chocolatey
- chocolatey-core.extension
state: present
ERROR
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}
Also every time I connect to any internet page from my windows 10 VM is looking like this:
What should I do?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请,看来此错误与存储库的Broked URL有关,请继续尝试以下来自Ansible文档:
Please, seems this error is related to broked URL from repository, please go ahead and try this one below from Ansible documentation: