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
|
@ -104,66 +104,66 @@ extends_documentation_fragment: vmware.documentation
|
|||
EXAMPLES = r'''
|
||||
- name: Add Management Network VM Portgroup
|
||||
vmware_portgroup:
|
||||
hostname: esxi_hostname
|
||||
username: esxi_username
|
||||
password: esxi_password
|
||||
switch_name: vswitch_name
|
||||
portgroup_name: portgroup_name
|
||||
vlan_id: vlan_id
|
||||
hostname: "{{ esxi_hostname }}"
|
||||
username: "{{ esxi_username }}"
|
||||
password: "{{ esxi_password }}"
|
||||
switch_name: "{{ vswitch_name }}"
|
||||
portgroup_name: "{{ portgroup_name }}"
|
||||
vlan_id: "{{ vlan_id }}"
|
||||
delegate_to: localhost
|
||||
|
||||
- name: Add Portgroup with Promiscuous Mode Enabled
|
||||
vmware_portgroup:
|
||||
hostname: esxi_hostname
|
||||
username: esxi_username
|
||||
password: esxi_password
|
||||
switch_name: vswitch_name
|
||||
portgroup_name: portgroup_name
|
||||
hostname: "{{ esxi_hostname }}"
|
||||
username: "{{ esxi_username }}"
|
||||
password: "{{ esxi_password }}"
|
||||
switch_name: "{{ vswitch_name }}"
|
||||
portgroup_name: "{{ portgroup_name }}"
|
||||
network_policy:
|
||||
promiscuous_mode: True
|
||||
delegate_to: localhost
|
||||
|
||||
- name: Add Management Network VM Portgroup to specific hosts
|
||||
vmware_portgroup:
|
||||
hostname: vCenter_hostname
|
||||
username: esxi_username
|
||||
password: esxi_password
|
||||
hostname: "{{ vcenter_hostname }}"
|
||||
username: "{{ vcenter_username }}"
|
||||
password: "{{ vcenter_password }}"
|
||||
hosts: [esxi_hostname_one]
|
||||
switch_name: vswitch_name
|
||||
portgroup_name: portgroup_name
|
||||
vlan_id: vlan_id
|
||||
switch_name: "{{ vswitch_name }}"
|
||||
portgroup_name: "{{ portgroup_name }}"
|
||||
vlan_id: "{{ vlan_id }}"
|
||||
delegate_to: localhost
|
||||
|
||||
- name: Add Management Network VM Portgroup to all hosts in a cluster
|
||||
vmware_portgroup:
|
||||
hostname: vCenter_hostname
|
||||
username: esxi_username
|
||||
password: esxi_password
|
||||
cluster_name: rh_engineering
|
||||
switch_name: vswitch_name
|
||||
portgroup_name: portgroup_name
|
||||
vlan_id: vlan_id
|
||||
hostname: "{{ vcenter_hostname }}"
|
||||
username: "{{ vcenter_username }}"
|
||||
password: "{{ vcenter_password }}"
|
||||
cluster_name: "{{ cluster_name }}"
|
||||
switch_name: "{{ vswitch_name }}"
|
||||
portgroup_name: "{{ portgroup_name }}"
|
||||
vlan_id: "{{ vlan_id }}"
|
||||
delegate_to: localhost
|
||||
|
||||
- name: Remove Management Network VM Portgroup to all hosts in a cluster
|
||||
vmware_portgroup:
|
||||
hostname: vCenter_hostname
|
||||
username: esxi_username
|
||||
password: esxi_password
|
||||
cluster_name: rh_engineering
|
||||
switch_name: vswitch_name
|
||||
portgroup_name: portgroup_name
|
||||
vlan_id: vlan_id
|
||||
hostname: "{{ vcenter_hostname }}"
|
||||
username: "{{ vcenter_username }}"
|
||||
password: "{{ vcenter_password }}"
|
||||
cluster_name: "{{ cluster_name }}"
|
||||
switch_name: "{{ vswitch_name }}"
|
||||
portgroup_name: "{{ portgroup_name }}"
|
||||
vlan_id: "{{ vlan_id }}"
|
||||
state: absent
|
||||
delegate_to: localhost
|
||||
|
||||
- name: Add Portgroup with teaming policy
|
||||
vmware_portgroup:
|
||||
hostname: esxi_hostname
|
||||
username: esxi_username
|
||||
password: esxi_password
|
||||
switch_name: vswitch_name
|
||||
portgroup_name: portgroup_name
|
||||
hostname: "{{ esxi_hostname }}"
|
||||
username: "{{ esxi_username }}"
|
||||
password: "{{ esxi_password }}"
|
||||
switch_name: "{{ vswitch_name }}"
|
||||
portgroup_name: "{{ portgroup_name }}"
|
||||
teaming_policy:
|
||||
load_balance_policy: 'failover_explicit'
|
||||
inbound_policy: True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue