mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 03:41: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
|
@ -105,9 +105,9 @@ extends_documentation_fragment: vmware.documentation
|
|||
EXAMPLES = r'''
|
||||
- name: Run command inside a virtual machine
|
||||
vmware_vm_shell:
|
||||
hostname: "{{ vcenter_server }}"
|
||||
username: "{{ vcenter_user }}"
|
||||
password: "{{ vcenter_pass }}"
|
||||
hostname: "{{ vcenter_hostname }}"
|
||||
username: "{{ vcenter_username }}"
|
||||
password: "{{ vcenter_password }}"
|
||||
datacenter: "{{ datacenter }}"
|
||||
folder: /"{{datacenter}}"/vm
|
||||
vm_id: "{{ vm_name }}"
|
||||
|
@ -124,9 +124,9 @@ EXAMPLES = r'''
|
|||
|
||||
- name: Run command inside a virtual machine with wait and timeout
|
||||
vmware_vm_shell:
|
||||
hostname: "{{ vcenter_server }}"
|
||||
username: "{{ vcenter_user }}"
|
||||
password: "{{ vcenter_pass }}"
|
||||
hostname: "{{ vcenter_hostname }}"
|
||||
username: "{{ vcenter_username }}"
|
||||
password: "{{ vcenter_password }}"
|
||||
datacenter: "{{ datacenter }}"
|
||||
folder: /"{{datacenter}}"/vm
|
||||
vm_id: NameOfVM
|
||||
|
@ -141,9 +141,9 @@ EXAMPLES = r'''
|
|||
|
||||
- name: Change user password in the guest machine
|
||||
vmware_vm_shell:
|
||||
hostname: "{{ vcenter_server }}"
|
||||
username: "{{ vcenter_user }}"
|
||||
password: "{{ vcenter_pass }}"
|
||||
hostname: "{{ vcenter_hostname }}"
|
||||
username: "{{ vcenter_username }}"
|
||||
password: "{{ vcenter_password }}"
|
||||
datacenter: "{{ datacenter }}"
|
||||
folder: /"{{datacenter}}"/vm
|
||||
vm_id: "{{ vm_name }}"
|
||||
|
@ -155,9 +155,9 @@ EXAMPLES = r'''
|
|||
|
||||
- name: Change hostname of guest machine
|
||||
vmware_vm_shell:
|
||||
hostname: "{{ vcenter_server }}"
|
||||
username: "{{ vcenter_user }}"
|
||||
password: "{{ vcenter_pass }}"
|
||||
hostname: "{{ vcenter_hostname }}"
|
||||
username: "{{ vcenter_username }}"
|
||||
password: "{{ vcenter_password }}"
|
||||
validate_certs: no
|
||||
datacenter: "{{ datacenter }}"
|
||||
folder: /"{{datacenter}}"/vm
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue