Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- # vmware_cluster – Manage VMware vSphere clusters
- # https://docs.ansible.com/ansible/latest/modules/vmware_cluster_module.html#vmware-cluster-module
- # TODO: add ability to set Admission Control Policy - to percentage based in our case
- - name: Manage Cluster Settings
- vmware_cluster:
- hostname: '{{ vc }}'
- username: '{{ vc_username }}'
- password: '{{ vc_pass }}'
- cluster_name: '{{ item }}'
- datacenter_name: '{{ dc }}'
- enable_ha: yes
- ha_host_monitoring: enabled
- ha_vm_monitoring: vmMonitoringDisabled
- ha_admission_control_enabled: yes
- ha_failover_level: 1
- ha_restart_priority: medium
- enable_drs: yes
- drs_default_vm_behavior: partiallyAutomated
- drs_enable_vm_behavior_overrides: yes
- drs_vmotion_rate: 3
- enable_vsan: no
- state: present
- validate_certs: False
- delegate_to: localhost
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement