community.vmware.vmware_host_powermgmt_policy – Manages the Power Management Policy of an ESXI host system¶
Note
This plugin is part of the community.vmware collection (version 1.7.0).
To install it use: ansible-galaxy collection install community.vmware
.
To use it in a playbook, specify: community.vmware.vmware_host_powermgmt_policy
.
Synopsis¶
This module can be used to manage the Power Management Policy of ESXi host systems in given vCenter infrastructure.
Requirements¶
The below requirements are needed on the host that executes this module.
python >= 2.6
PyVmomi
Parameters¶
Examples¶
- name: Set the Power Management Policy of a host system to high-performance
community.vmware.vmware_host_powermgmt_policy:
hostname: '{{ vcenter_hostname }}'
username: '{{ vcenter_username }}'
password: '{{ vcenter_password }}'
esxi_hostname: '{{ esxi_host }}'
policy: high-performance
delegate_to: localhost
- name: Set the Power Management Policy of all host systems from cluster to high-performance
community.vmware.vmware_host_powermgmt_policy:
hostname: '{{ vcenter_hostname }}'
username: '{{ vcenter_username }}'
password: '{{ vcenter_password }}'
cluster_name: '{{ cluster_name }}'
policy: high-performance
delegate_to: localhost
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Authors¶
Christian Kotte (@ckotte) <christian.kotte@gmx.de>