'Ansible - how to check get processes with missing file handlers

Is there a way to get list of processes which are missing file handlers using ansible ?

asking as i am trying to find a "better way or ansible way" to find these process, I would like to avoid running shell or command block in ansible with any variations of lsof, /proc/$$ ..

lsof /disk | grep delete
ls -l /proc/$$/fd| grep deleted

Thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source