mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-30 04:00:21 -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
|
@ -66,33 +66,33 @@ extends_documentation_fragment: vmware.documentation
|
|||
EXAMPLES = r'''
|
||||
- name: Set the state of a host system to reboot
|
||||
vmware_host_powerstate:
|
||||
hostname: 192.0.2.44
|
||||
username: administrator@vsphere.local
|
||||
password: vmware
|
||||
hostname: '{{ vcenter_hostname }}'
|
||||
username: '{{ vcenter_username }}'
|
||||
password: '{{ vcenter_password }}'
|
||||
validate_certs: no
|
||||
esxi_hostname: esxi01
|
||||
esxi_hostname: '{{ esxi_hostname }}'
|
||||
state: reboot-host
|
||||
delegate_to: localhost
|
||||
register: reboot_host
|
||||
|
||||
- name: Set the state of a host system to power down to standby
|
||||
vmware_host_powerstate:
|
||||
hostname: 192.0.2.44
|
||||
username: administrator@vsphere.local
|
||||
password: vmware
|
||||
hostname: '{{ vcenter_hostname }}'
|
||||
username: '{{ vcenter_username }}'
|
||||
password: '{{ vcenter_password }}'
|
||||
validate_certs: no
|
||||
esxi_hostname: power-down-to-standby
|
||||
esxi_hostname: '{{ esxi_hostname }}'
|
||||
state: power-down-to-standby
|
||||
delegate_to: localhost
|
||||
register: power_down
|
||||
|
||||
- name: Set the state of all host systems from cluster to reboot
|
||||
vmware_host_powerstate:
|
||||
hostname: 192.0.2.44
|
||||
username: administrator@vsphere.local
|
||||
password: vmware
|
||||
hostname: '{{ vcenter_hostname }}'
|
||||
username: '{{ vcenter_username }}'
|
||||
password: '{{ vcenter_password }}'
|
||||
validate_certs: no
|
||||
cluster_name: DC0_C0
|
||||
cluster_name: '{{ cluster_name }}'
|
||||
state: reboot-host
|
||||
delegate_to: localhost
|
||||
register: reboot_host
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue