mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 20:31:27 -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
|
@ -58,37 +58,37 @@ extends_documentation_fragment: vmware.documentation
|
|||
EXAMPLES = '''
|
||||
- name: Enter datastore into Maintenance Mode
|
||||
vmware_datastore_maintenancemode:
|
||||
hostname: vc_host
|
||||
username: vc_user
|
||||
password: vc_pass
|
||||
datastore: datastore1
|
||||
hostname: '{{ vcenter_hostname }}'
|
||||
username: '{{ vcenter_username }}'
|
||||
password: '{{ vcenter_password }}'
|
||||
datastore: '{{ datastore_name }}'
|
||||
state: present
|
||||
delegate_to: localhost
|
||||
|
||||
- name: Enter all datastores under cluster into Maintenance Mode
|
||||
vmware_datastore_maintenancemode:
|
||||
hostname: vc_host
|
||||
username: vc_user
|
||||
password: vc_pass
|
||||
cluster_name: DC0_C0
|
||||
hostname: '{{ vcenter_hostname }}'
|
||||
username: '{{ vcenter_username }}'
|
||||
password: '{{ vcenter_password }}'
|
||||
cluster_name: '{{ cluster_name }}'
|
||||
state: present
|
||||
delegate_to: localhost
|
||||
|
||||
- name: Enter all datastores under datastore cluster into Maintenance Mode
|
||||
vmware_datastore_maintenancemode:
|
||||
hostname: vc_host
|
||||
username: vc_user
|
||||
password: vc_pass
|
||||
datastore_cluster: DSC_POD0
|
||||
hostname: '{{ vcenter_hostname }}'
|
||||
username: '{{ vcenter_username }}'
|
||||
password: '{{ vcenter_password }}'
|
||||
datastore_cluster: '{{ datastore_cluster_name }}'
|
||||
state: present
|
||||
delegate_to: localhost
|
||||
|
||||
- name: Exit datastore into Maintenance Mode
|
||||
vmware_datastore_maintenancemode:
|
||||
hostname: vc_host
|
||||
username: vc_user
|
||||
password: vc_pass
|
||||
datastore: datastore1
|
||||
hostname: '{{ vcenter_hostname }}'
|
||||
username: '{{ vcenter_username }}'
|
||||
password: '{{ vcenter_password }}'
|
||||
datastore: '{{ datastore_name }}'
|
||||
state: absent
|
||||
delegate_to: localhost
|
||||
'''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue