-1

我尝试自动创建一些虚拟机,我可以说代码按原样工作......我能够即时创建 20 个虚拟机!现在我从 Ansible 1.8.4 配置的模块搜索路径升级我的 Ansible = None TO

Ansible 1.9.0.1 配置的模块搜索路径 = 无

当我将我的 pysphere 从 0.1.7 升级到 0.1.8 (pysphere-0.1.8-py2.7.egg-info) 时,升级的唯一原因是relocate()0.1.8 中的功能。

所以现在我尝试运行我的 Ansible 代码,我得到了这个错误

failed: [host1] => {"failed": true}
msg: unsupported parameter for module: username

tasks:
    - debug: var=vm
    - name: Gather VM facts
      vsphere_guest:
        vcenter_hostname: vcenter name
        password: pass
        username: user
        guest: ansible
        vmware_guest_facts: yes

 

REMOTE_MODULE vsphere_guest vcenter_hostname=XXXXXXXXX guest=ansible password=VALUE_HIDDEN username=    <------  MISSING !!!! why ?? 

我安装了新服务器并返回旧版本:同样的问题……我怎样才能获得更多详细日志?

我错过了什么?

谢谢诺姆

4

1 回答 1

0

OK i fix it ! yes i am idiot ! 50% :)

by default ansible is try to find folder named library in this folder you put some new module and i download vsphere_guest.py from some site and ansible just use it ! the only issue is that i dont understand why in the run you can see that module is from the url or any url :)

case closed many thanks

于 2015-03-29T21:16:41.827 回答