Advertisement
Guest User

Untitled

a guest
Oct 27th, 2016
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.26 KB | None | 0 0
  1.  
  2. An exception occurred during task execution. The full traceback is:
  3. Traceback (most recent call last):
  4. File "/tmp/ansible_G8VpbK/ansible_module_vsphere_guest.py", line 1929, in <module>
  5. main()
  6. File "/tmp/ansible_G8VpbK/ansible_module_vsphere_guest.py", line 1856, in main
  7. force=force
  8. File "/tmp/ansible_G8VpbK/ansible_module_vsphere_guest.py", line 924, in reconfigure_vm
  9. for dev in current_devices:
  10. NameError: global name 'current_devices' is not defined
  11.  
  12. failed: [localhost] (item=mesosm03) => {"failed": true, "invocation": {"module_name": "vsphere_guest"}, "item": "mesosm03", "module_stderr": "Traceback (most recent call last):\n File \"/tmp/ansible_G8VpbK/ansible_module_vsphere_guest.py\", line 1929, in <module>\n main()\n File \"/tmp/ansible_G8VpbK/ansible_module_vsphere_guest.py\", line 1856, in main\n force=force\n File \"/tmp/ansible_G8VpbK/ansible_module_vsphere_guest.py\", line 924, in reconfigure_vm\n for dev in current_devices:\nNameError: global name 'current_devices' is not defined\n", "module_stdout": "", "msg": "MODULE FAILURE", "parsed": false}
  13.  
  14. - name:modify VM
  15. hosts: localhost
  16. connection: local
  17.  
  18. tasks:
  19. - name: modify master vms
  20. vsphere_guest:
  21. vcenter_hostname:
  22. username:
  23. password:
  24. guest: "{{ item }}"
  25. state: reconfigured
  26. vm_extra_config:
  27. vcpu.hotadd: yes
  28. mem.hotadd: yes
  29. notes: Mesos Master
  30. folder: Mesos
  31. vm_disk:
  32. disk1:
  33. size_gb: 120
  34. type: thin
  35. datastore: CENTOS2
  36. # VMs can be put into folders. The value given here is either the full path
  37. # to the folder (e.g. production/customerA/lamp) or just the last component
  38. # of the path (e.g. lamp):
  39. folder: Mesos
  40. vm_nic:
  41. nic1:
  42. type: vmxnet3
  43. network: "VM Network"
  44. network_type: standard
  45. vm_hardware:
  46. memory_mb: 16384
  47. num_cpus: 2
  48. osid: centos64Guest
  49. scsi: paravirtual
  50. vm_cdrom:
  51. type: "iso"
  52. iso_path: "CENTOS2/ISO/mesos/configdrive-{{ item }}.iso"
  53. esxi:
  54. datacenter: HomeLab
  55. hostname: 192.168.1.21
  56. with_items:
  57. - mesosm01
  58. - mesosm02
  59. - mesosm03
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement