mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-30 22:31:25 -07:00
VMware: Update example (#43786)
* Unified examples in all modules * validate_certs is now 'no' instead of 'False' * delegate_to changes Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
4618583f2f
commit
1366a694f9
55 changed files with 516 additions and 529 deletions
|
@ -68,30 +68,30 @@ extends_documentation_fragment: vmware.documentation
|
|||
EXAMPLES = r'''
|
||||
- name: Move Virtual Machine
|
||||
vmware_guest_move:
|
||||
hostname: "{{ vcenter_ip }}"
|
||||
hostname: "{{ vcenter_hostname }}"
|
||||
username: "{{ vcenter_username }}"
|
||||
password: "{{ vcenter_password }}"
|
||||
datacenter: datacenter
|
||||
validate_certs: False
|
||||
validate_certs: no
|
||||
name: testvm-1
|
||||
dest_folder: datacenter/vm/prodvms
|
||||
dest_folder: /"{{ datacenter }}"/vm
|
||||
delegate_to: localhost
|
||||
|
||||
- name: Get VM UUID
|
||||
vmware_guest_facts:
|
||||
hostname: "{{ vcenter_ip }}"
|
||||
hostname: "{{ vcenter_hostname }}"
|
||||
username: "{{ vcenter_username }}"
|
||||
password: "{{ vcenter_password }}"
|
||||
validate_certs: no
|
||||
datacenter: "{{ datacenter }}"
|
||||
folder: "/{{datacenter}}/vm"
|
||||
folder: /"{{datacenter}}"/vm
|
||||
name: "{{ vm_name }}"
|
||||
delegate_to: localhost
|
||||
register: vm_facts
|
||||
|
||||
- name: Get UUID from previous task and pass it to this task
|
||||
vmware_guest_move:
|
||||
hostname: "{{ vcenter_ip }}"
|
||||
hostname: "{{ vcenter_hostname }}"
|
||||
username: "{{ vcenter_username }}"
|
||||
password: "{{ vcenter_password }}"
|
||||
validate_certs: no
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue