-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/1.9.3' into imprv/spelling-Improvements
- Loading branch information
Showing
7 changed files
with
154 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
########################### UPDATE_VM_CDROM ################################ | ||
--- | ||
- name: Create a VM with empty CD ROM and Update that disk with image | ||
hosts: localhost | ||
gather_facts: false | ||
module_defaults: | ||
group/nutanix.ncp.ntnx: | ||
nutanix_host: <pc_ip> | ||
nutanix_username: <user> | ||
nutanix_password: <pass> | ||
validate_certs: false | ||
tasks: | ||
- name: Setting Variables | ||
ansible.builtin.set_fact: | ||
vm_uuid: "" | ||
disk_uuid: "" | ||
|
||
- name: Create VM with empty CD ROM | ||
nutanix.ncp.ntnx_vms: | ||
name: "VM with empty CD ROM" | ||
cluster: | ||
name: "{{ cluster.name }}" | ||
categories: | ||
Environment: | ||
- Production | ||
disks: | ||
- type: "CDROM" | ||
bus: "IDE" | ||
empty_cdrom: true | ||
register: result | ||
|
||
- name: Update VM by cloning image into CD ROM | ||
nutanix.ncp.ntnx_vms: | ||
vm_uuid: "{{ result.vm_uuid }}" | ||
name: "VM with CD ROM updated" | ||
disks: | ||
- type: "CDROM" | ||
uuid: "{{ result.response.spec.resources.disk_list[0].uuid }}" | ||
clone_image: | ||
name: "{{ iso_image_name }}" | ||
register: result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters