I was able to create an ansible module for getting\modifying custom properties. Thanks to hailaeos and Asa Gage
Here is the beta version of it. I have only tested using the IP as the lookup for the node.
to get the value of the customp_name just leave off customp_val
to modify the custom property value set customp_val to your required value.
The module does a compare.