|
|
|
@ -4,22 +4,49 @@
|
|
|
|
|
|
|
|
|
|
- when: vcsim is not defined
|
|
|
|
|
block:
|
|
|
|
|
- name: Enable EVC mode on vCenter Cluster
|
|
|
|
|
vmware_evc_mode: &vmware_evc_data
|
|
|
|
|
- import_role:
|
|
|
|
|
name: prepare_vmware_tests
|
|
|
|
|
vars:
|
|
|
|
|
setup_datacenter: true
|
|
|
|
|
|
|
|
|
|
- name: add cluster
|
|
|
|
|
vmware_cluster:
|
|
|
|
|
validate_certs: False
|
|
|
|
|
hostname: "{{ vcenter_hostname }}"
|
|
|
|
|
username: "{{ vcenter_username }}"
|
|
|
|
|
password: "{{ vcenter_password }}"
|
|
|
|
|
datacenter_name: "{{ dc1 }}"
|
|
|
|
|
cluster_name: test_cluster_0001
|
|
|
|
|
state: present
|
|
|
|
|
|
|
|
|
|
- &evc_enable_data
|
|
|
|
|
name: Enable EVC mode on vCenter Cluster
|
|
|
|
|
vmware_evc_mode:
|
|
|
|
|
hostname: "{{ vcenter_hostname }}"
|
|
|
|
|
username: "{{ vcenter_username }}"
|
|
|
|
|
password: "{{ vcenter_password }}"
|
|
|
|
|
validate_certs: no
|
|
|
|
|
datacenter_name: "{{ dc1 }}"
|
|
|
|
|
cluster_name: test_cluster_0001
|
|
|
|
|
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
|
|
|
|
|
- <<: *evc_enable_data
|
|
|
|
|
name: Enable EVC mode on vCenter cluster in check mode
|
|
|
|
|
check_mode: yes
|
|
|
|
|
|
|
|
|
|
- &evc_disable_data
|
|
|
|
|
name: Disable EVC mode on vCenter Cluster
|
|
|
|
|
vmware_evc_mode:
|
|
|
|
|
<<: *vmware_evc_data
|
|
|
|
|
hostname: "{{ vcenter_hostname }}"
|
|
|
|
|
username: "{{ vcenter_username }}"
|
|
|
|
|
password: "{{ vcenter_password }}"
|
|
|
|
|
validate_certs: no
|
|
|
|
|
datacenter_name: "{{ dc1 }}"
|
|
|
|
|
cluster_name: test_cluster_0001
|
|
|
|
|
evc_mode: intel-broadwell
|
|
|
|
|
state: absent
|
|
|
|
|
check_mode: yes
|
|
|
|
|
|
|
|
|
|
- <<: *evc_disable_data
|
|
|
|
|
name: Disable EVC mode on vCenter Cluster in check mode
|
|
|
|
|
check_mode: yes
|
|
|
|
|