Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tasks:
- - name: add a new disk on guest vm
- vmware_guest:
- hostname: "{{ vcenter_hostname }}"
- user: "{{ vcenter_username }}"
- password: "{{ vcenter_password }}"
- datacenter: "{{ vcenter_datacenter }}"
- cluster: "{{ vcenter_cluster }}"
- guest_id: "rhel7_64Guest"
- validate_certs: False
- state: present
- name: "{{ ansible_nodename }}"
- disk:
- - size_gb: 32G
- autoselect_datastore: True
- delegate_to: localhost
- But I have this message:
- fatal: [servername -> localhost]: FAILED! => {
- "changed": false,
- "invocation": {
- "module_args": {
- "annotation": null,
- "cluster": "cluster",
- "customization": {},
- "customvalues": [],
- "datacenter": "datacenter",
- "disk": [
- {
- "autoselect_datastore": true,
- "size_gb": "32G"
- }
- ],
- "esxi_hostname": null,
- "folder": "/vm",
- "force": false,
- "guest_id": "rhel7_64Guest",
- "hardware": {},
- "hostname": "vcenter.domain",
- "is_template": false,
- "linked_clone": false,
- "name": "servername",
- "name_match": "first",
- "networks": [],
- "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
- "resource_pool": null,
- "snapshot_src": null,
- "state": "present",
- "template": null,
- "user": "VSPHERE.LOCAL\\username",
- "username": "VSPHERE.LOCAL\\username",
- "uuid": null,
- "validate_certs": false,
- "wait_for_ip_address": false
- }
- },
- "msg": "hardware.num_cpus attribute is mandatory for VM creation"
- }
- to retry, use: --limit @/home/svc_ansible/Ansible/SAQ/Base/playbooks/preparation_webmethod10.retry
Add Comment
Please, Sign In to add comment