我正在尝试获得一个ansible脚本,它可以简单地从ansible控件服务器中平移WINDOWS来宾,下面是我的文件:
hosts.yml
[winsrvrs]
server.domain.com
**group_vars/all.yml**
ansible_user: domain\\userID
ansible_password: password
ansible_port: 5986
ansible_connection: winrm
ansible_winrm_server_cert_validation: ignore
When attempting to run ansible-playbook -i hosts play.yml i get the following error:
Exception: Cannot import pyOpenSSL
fatal: [wstnm.nml.com]: FAILED! => {
"failed": true,
"msg": "Unexpected failure during module execution.",
"stdout": ""
}我尝试卸载和重新安装两个WINRM and PYOPENSSL以及所有支持的依赖项。
发布于 2017-09-08 11:59:16
如果您的ansible控件计算机位于Ubuntu上,请首先安装这些依赖项:
$sudo apt-get install libffi-dev
$pip install cryptography发布于 2017-03-17 09:34:44
试试pip install pyopenssl --upgrade
https://stackoverflow.com/questions/42822072
复制相似问题