# Setting the restart priority in the vm level

**URL:** <https://forum.ansible.com/t/setting-the-restart-priority-in-the-vm-level/32540>\
**Category:** Ansible Developer\
**Created:** [March 26, 2020, 2:58pm UTC](https://forum.ansible.com/t/setting-the-restart-priority-in-the-vm-level/32540 "2020-03-26T14:58:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shanmathi\_Manisekara](https://avatars.discourse-cdn.com/v4/letter/s/ea666f/32.png) [@Shanmathi\_Manisekara](https://forum.ansible.com/u/Shanmathi_Manisekara)\
**Post date:** [March 26, 2020, 2:58pm UTC](https://forum.ansible.com/t/setting-the-restart-priority-in-the-vm-level/32540/1 "2020-03-26T14:58:49Z")

</div>

Hi all,

I wanted to set the restart priority in the vm level. Currently vmware\_cluster\_ha module can set the restart priority in a cluster level. But I did some search and found that there is no module to do this in vm level. Can someone suggest an alternative where we can set the vm name and vm restart priority to every vm in a vsphere cluster.
