mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
773 B
YAML
26 lines
773 B
YAML
6 years ago
|
# Test code for the vmware evc mode module.
|
||
|
# Copyright: (c) 2019, Michael Tipton <mike () ibeta.org>
|
||
|
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||
|
|
||
|
- when: vcsim is not defined
|
||
|
block:
|
||
|
- name: Enable EVC mode on vCenter Cluster
|
||
|
vmware_evc_mode: &vmware_evc_data
|
||
|
hostname: "{{ vcenter_hostname }}"
|
||
|
username: "{{ vcenter_username }}"
|
||
|
password: "{{ vcenter_password }}"
|
||
|
validate_certs: no
|
||
|
evc_mode: intel-broadwell
|
||
|
state: present
|
||
|
check_mode: yes
|
||
|
|
||
|
- name: Enable EVC mode on vCenter Cluster
|
||
|
vmware_evc_mode:
|
||
|
<<: *vmware_evc_data
|
||
|
|
||
|
- name: Disable EVC mode on vCenter Cluster
|
||
|
vmware_evc_mode:
|
||
|
<<: *vmware_evc_data
|
||
|
state: absent
|
||
|
check_mode: yes
|