Ansible和Opennebula:用于https://myopennebulaserver/RPC2: 401客户端错误:未经授权

Ansible和Opennebula:用于https://myopennebulaserver/RPC2: 401客户端错误:未经授权,ansible,opennebula,Ansible,Opennebula,我想使用ansible管理opennebula。在我的ansible服务器中,我安装了community.general(ansible galaxy collection)、pyone和oca装饰程序。在我的opennebula服务器中,我安装了pyone和oca装饰器 我创建了一个包含以下内容的剧本: - hosts: myopennebulaserver become: false become_method: sudo tasks: - name: Gather fact

我想使用ansible管理opennebula。在我的ansible服务器中,我安装了community.general(ansible galaxy collection)、pyone和oca装饰程序。在我的opennebula服务器中,我安装了pyone和oca装饰器

我创建了一个包含以下内容的剧本:

- hosts: myopennebulaserver
  become: false
  become_method: sudo
  tasks:
  - name: Gather facts about all images
    community.general.one_image_info:
     api_url: https://myopennebulaurlserver
     api_username: "myopennebulawebuserserver"
     api_password: "myopennebulawebpasswordserver"
    register: result
当我执行剧本时,我发现以下错误:

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: xmlrpclib.ProtocolError: <ProtocolError for https://myopennebulaurlserver/RPC2: 401 401 Client Error: Unauthorized>
任务执行期间发生异常。要查看完整的回溯,请使用-vvv。错误为:xmlrpclib.ProtocolError:
有什么建议吗


谢谢。

嗨,杰伊,欢迎来到SO。错误消息表示您的凭据对于该URL无效;您是否能够在ansible之外使用相同的凭据?您已经采取了哪些故障排除步骤,其结果是什么?这看起来确实像是身份验证问题。我无法使用您提供的相同剧本(包括https等)重现问题
oneimage列表
使用相同的信条对您有效吗?你用什么样的版本?(我想补充一点,因为这不是一个答案,但缺乏声誉:-$)