Skip to content

Commit

Permalink
Updating variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
jtyr committed Nov 19, 2019
1 parent 6f92f28 commit 57e9005
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ vmware_vm_provisioning_vms: []
#vmware_vm_provisioning_customization_spec: null
#vmware_vm_provisioning_customvalues: null
#vmware_vm_provisioning_datacenter: null
#vmware_vm_provisioning_disk: null
#vmware_vm_provisioning_disks: null
#vmware_vm_provisioning_esxi_hostname: null
#vmware_vm_provisioning_folder: null
#vmware_vm_provisioning_force: null
Expand Down
2 changes: 1 addition & 1 deletion defaults/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ vmware_vm_provisioning_vms: []
#vmware_vm_provisioning_customization_spec: null
#vmware_vm_provisioning_customvalues: null
#vmware_vm_provisioning_datacenter: null
#vmware_vm_provisioning_disk: null
#vmware_vm_provisioning_disks: null
#vmware_vm_provisioning_esxi_hostname: null
#vmware_vm_provisioning_folder: null
#vmware_vm_provisioning_force: null
Expand Down
14 changes: 7 additions & 7 deletions tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,20 +82,20 @@
port: "{{ vmware_vm_provisioning_vm.port | default(vmware_vm_provisioning_port | default(omit)) }}"
username: "{{ vmware_vm_provisioning_vm.username | default(vmware_vm_provisioning_username | default(omit)) }}"
validate_certs: "{{ vmware_vm_provisioning_vm.validate_certs | default(vmware_vm_provisioning_validate_certs | default(omit)) }}"
register: vmware_vm_provisioning_vm_disk_facts
register: vmware_vm_provisioning_vm_disk_info

- name: Info about disk being detached
debug:
msg: >-
Detaching
controler={{ vmware_vm_provisioning_scsi_controller | default(item._scsi_controller | default(0)) }}
unit={{ ansible_loop.index0 }}
path='{{ vmware_vm_provisioning_vm_disk_facts.guest_disk_facts[ansible_loop.index0 | string].backing_filename }}'
path='{{ vmware_vm_provisioning_vm_disk_info.guest_disk_info[ansible_loop.index0 | string].backing_filename }}'
when: >
'_userdata' in item and
item['_userdata'] == true and
ansible_loop.index0 | string in vmware_vm_provisioning_vm_disk_facts.guest_disk_facts
loop: "{{ vmware_vm_provisioning_vm.disks | default(vmware_vm_provisioning_disk | default([])) }}"
ansible_loop.index0 | string in vmware_vm_provisioning_vm_disk_info.guest_disk_info
loop: "{{ vmware_vm_provisioning_vm.disks | default(vmware_vm_provisioning_disks | default([])) }}"
loop_control:
extended: yes

Expand All @@ -118,8 +118,8 @@
when: >
'_userdata' in item and
item['_userdata'] == true and
ansible_loop.index0 | string in vmware_vm_provisioning_vm_disk_facts.guest_disk_facts
loop: "{{ vmware_vm_provisioning_vm.disks | default(vmware_vm_provisioning_disk | default([])) }}"
ansible_loop.index0 | string in vmware_vm_provisioning_vm_disk_info.guest_disk_info
loop: "{{ vmware_vm_provisioning_vm.disks | default(vmware_vm_provisioning_disks | default([])) }}"
loop_control:
extended: yes
when: >
Expand Down Expand Up @@ -169,7 +169,7 @@
customization_spec: "{{ vmware_vm_provisioning_vm.customization_spec | default(vmware_vm_provisioning_customization_spec | default(omit)) }}"
customvalues: "{{ vmware_vm_provisioning_vm.customvalues | default(vmware_vm_provisioning_customvalues | default(omit)) }}"
datacenter: "{{ vmware_vm_provisioning_vm.datacenter | default(vmware_vm_provisioning_datacenter | default(omit)) }}"
disk: "{{ vmware_vm_provisioning_vm.disks | default(vmware_vm_provisioning_disk | default(omit)) | modify_disks(vmware_vm_provisioning_vm.state | default(vmware_vm_provisioning_state), vmware_vm_provisioning_vm_disk_facts) }}"
disk: "{{ vmware_vm_provisioning_vm.disks | default(vmware_vm_provisioning_disks | default(omit)) | modify_disks(vmware_vm_provisioning_vm.state | default(vmware_vm_provisioning_state), vmware_vm_provisioning_vm_disk_info) }}"
esxi_hostname: "{{ vmware_vm_provisioning_vm.esxi_hostname | default(vmware_vm_provisioning_esxi_hostname | default(omit)) }}"
folder: "{{ vmware_vm_provisioning_vm.folder | default(vmware_vm_provisioning_folder | default(omit)) }}"
force: "{{ vmware_vm_provisioning_vm.force | default(vmware_vm_provisioning_force | default(omit)) }}"
Expand Down

0 comments on commit 57e9005

Please sign in to comment.