any idea how to disable/enable vcenter alarm for esxi host in ansible task?
Ansible does not have a built-in module specifically designed to manage vCenter alarms for ESXi hosts. However, you can use the vmware_vm_vm_drs_rule module to work with DRS rules which are closely related to alarms.