mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-30 06:11:26 -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
|
@ -95,25 +95,24 @@ extends_documentation_fragment: vmware.documentation
|
|||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
# Create a resource pool
|
||||
- name: Add resource pool to vCenter
|
||||
vmware_resource_pool:
|
||||
hostname: vcsa_host
|
||||
username: vcsa_user
|
||||
password: vcsa_pass
|
||||
datacenter: datacenter
|
||||
cluster: cluster
|
||||
resource_pool: resource_pool
|
||||
mem_shares: normal
|
||||
mem_limit: -1
|
||||
mem_reservation: 0
|
||||
mem_expandable_reservations: True
|
||||
cpu_shares: normal
|
||||
cpu_limit: -1
|
||||
cpu_reservation: 0
|
||||
cpu_expandable_reservations: True
|
||||
state: present
|
||||
delegate_to: localhost
|
||||
- name: Add resource pool to vCenter
|
||||
vmware_resource_pool:
|
||||
hostname: '{{ vcenter_hostname }}'
|
||||
username: '{{ vcenter_username }}'
|
||||
password: '{{ vcenter_password }}'
|
||||
datacenter: '{{ datacenter_name }}'
|
||||
cluster: '{{ cluster_name }}'
|
||||
resource_pool: '{{ resource_pool_name }}'
|
||||
mem_shares: normal
|
||||
mem_limit: -1
|
||||
mem_reservation: 0
|
||||
mem_expandable_reservations: yes
|
||||
cpu_shares: normal
|
||||
cpu_limit: -1
|
||||
cpu_reservation: 0
|
||||
cpu_expandable_reservations: yes
|
||||
state: present
|
||||
delegate_to: localhost
|
||||
'''
|
||||
|
||||
RETURN = """
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue