One of our roles adds disks to our apache zookeeper machines. This is a task in a role for our RHV enviroment:
- name: Add zk disks
ovirt_disk:
auth: “{{ ovirt_auth }}”
name: “{{ item[1] }}”
vm_name: “{{ item[0] }}”
size: “4GiB”
format: cow
interface: virtio
storage_domain: “{{ rhv_storage_domain }}”
with_nested: - “{{ group }}”
- [‘zkData’, ‘zkLog’]
delegate_to: “{{ rhv }}”
when: zookeeper_deploy is defined
My question is this…in RHV we can name the disks in RHV for identification, but I do not see an equivalent option under the vmware_guest option. Would I just add an additional disk option in the task like below or is there a better practice method:
- name: Add zk disks
vmware_guest:
hostname: “{{ vcenter_hostname }}”
username: “{{ vcenter_username }}”
password: “{{ vcenter_password }}”
validate_certs: no
name: “{{ item }}”
disk: - size_gb: 4
type: thin
datastore:
disk: - size_gb: 4
type: thin
datastore:
delegate_to: “{{ vcenter }}”
when: zookeeper_deploy is defined?
Thanks
Robert