Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- An exception occurred during task execution. The full traceback is:
- Traceback (most recent call last):
- File "/tmp/ansible_G8VpbK/ansible_module_vsphere_guest.py", line 1929, in <module>
- main()
- File "/tmp/ansible_G8VpbK/ansible_module_vsphere_guest.py", line 1856, in main
- force=force
- File "/tmp/ansible_G8VpbK/ansible_module_vsphere_guest.py", line 924, in reconfigure_vm
- for dev in current_devices:
- NameError: global name 'current_devices' is not defined
- 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}
- - name:modify VM
- hosts: localhost
- connection: local
- tasks:
- - name: modify master vms
- vsphere_guest:
- vcenter_hostname:
- username:
- password:
- guest: "{{ item }}"
- state: reconfigured
- vm_extra_config:
- vcpu.hotadd: yes
- mem.hotadd: yes
- notes: Mesos Master
- folder: Mesos
- vm_disk:
- disk1:
- size_gb: 120
- type: thin
- datastore: CENTOS2
- # VMs can be put into folders. The value given here is either the full path
- # to the folder (e.g. production/customerA/lamp) or just the last component
- # of the path (e.g. lamp):
- folder: Mesos
- vm_nic:
- nic1:
- type: vmxnet3
- network: "VM Network"
- network_type: standard
- vm_hardware:
- memory_mb: 16384
- num_cpus: 2
- osid: centos64Guest
- scsi: paravirtual
- vm_cdrom:
- type: "iso"
- iso_path: "CENTOS2/ISO/mesos/configdrive-{{ item }}.iso"
- esxi:
- datacenter: HomeLab
- hostname: 192.168.1.21
- with_items:
- - mesosm01
- - mesosm02
- - mesosm03
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement